Received: with ECARTIS (v1.0.0; list linux-xfs); Thu, 08 Apr 2004 18:23:06 -0700 (PDT) Received: from K-7.stesmi.com (1-2-2-1a.has.sth.bostream.se [82.182.130.86]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i391MfKO008213 for ; Thu, 8 Apr 2004 18:22:42 -0700 Received: from stesmi.com (deltaflyer.stesmi.com [192.168.1.14]) by K-7.stesmi.com (8.12.8/8.12.5) with ESMTP id i391MYId007731; Fri, 9 Apr 2004 03:22:34 +0200 Message-ID: <4075FACC.3010105@stesmi.com> Date: Fri, 09 Apr 2004 03:22:20 +0200 From: Stefan Smietanowski User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "IKARASHI, Seiichi" CC: Chris Wedgwood , Steve Lord , Christoph Hellwig , linux-xfs@oss.sgi.com Subject: Re: synchronization of XFS References: <406365DE.2050006@stesmi.com> <4067B496.8060501@miraclelinux.com> <40682301.50508@xfs.org> <4074ABB3.500@stesmi.com> <20040408074826.GA25688@dingdong.cryptoapps.com> <40752DF3.2070109@stesmi.com> <407543A1.7090306@miraclelinux.com> <4075473E.40702@stesmi.com> <20040408182419.GA30488@dingdong.cryptoapps.com> <4075B371.8050705@stesmi.com> <20040408202535.GA31618@dingdong.cryptoapps.com> <4075D244.2070905@stesmi.com> <4075F191.5040406@miraclelinux.com> In-Reply-To: <4075F191.5040406@miraclelinux.com> Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-archive-position: 2779 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: stesmi@stesmi.com Precedence: bulk X-list: linux-xfs Content-Length: 1365 Lines: 46 IKARASHI, Seiichi wrote: > Stefan Smietanowski wrote: > >>>> I noticed as much. And guess what - it worked! >>> >>> > > Good news! > >>> >>> maybe hack the installer to check the fs-type then perhaps and do thr >>> freeze only if it's xfs using the ioctl's rather than calling out to >>> an external program >> >> >> >> Checking the FS type - yes, it involves some hackery pokery but it is >> doable. Right now all it does is check if xfs_freeze is installed and >> calls it twice each for both / and /boot (one freeze and one unfreeze). > > > Checking the filesystem type can be done in > bootloaderInfo.py of booty as follows: > > import fsset > if fsset.isValidXFS(bootDev): > // execute xfs_freeze -f for bootDev > // execute xfs_freeze -u for bootDev Excellent. I take it "if fsset.isValidXFS(bootDev)" is code and not pseudo-code. I'll have to try that. I know the "execute xfs_freeze..." is pseudo-code. Hmmm. Wait, I just thought of something actually. Regardless of if I have that if there or not I only need to do xfs_freese -[fu] /boot actually since it just dawned on me what Chris W said. Doing xfs_freeze -f /boot will freeze the partition where /boot is located if /boot is a dir on /. I'll try that if you wrote there and get back to you tomorrow. Right now it's pretty late .. 0320. ouch... Yup, definately tomorrow. // Stefan