xfs
[Top] [All Lists]

Re: synchronization of XFS

To: "IKARASHI, Seiichi" <ikarashi@xxxxxxxxxxxxxxxx>
Subject: Re: synchronization of XFS
From: Stefan Smietanowski <stesmi@xxxxxxxxxx>
Date: Fri, 09 Apr 2004 03:22:20 +0200
Cc: Chris Wedgwood <cw@xxxxxxxx>, Steve Lord <lord@xxxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <4075F191.5040406@miraclelinux.com>
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>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316
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


<Prev in Thread] Current Thread [Next in Thread>