xfs
[Top] [All Lists]

Re: synchronization of XFS

To: "IKARASHI, Seiichi" <ikarashi@xxxxxxxxxxxxxxxx>
Subject: Re: synchronization of XFS
From: Stefan Smietanowski <stesmi@xxxxxxxxxx>
Date: Thu, 25 Mar 2004 13:14:54 +0100
Cc: Chris Wedgwood <cw@xxxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <4062C97A.6030702@xxxxxxxxxxxxxxxx>
References: <4060F7FC.8090602@xxxxxxxxxxxxxxxx> <20040325063902.GA9697@xxxxxxxxxxxxxxxxxxxxxxx> <4062C97A.6030702@xxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316
Hi.

>>sync() should work --- why do you think it does?
> 
> Because anaconda/booty fails to install grub into a XFS partition.
> 
> Firstly anaconda executes "grub-install --just-copy", and
> executes sync() three times. Then anaconda runs "grub --batch"
> to really install grub into MBR of the disk,
> but grub cannot find files which should have been already
> written in the partition by sync(). grub does not try to seek
> those files through filesystem, but reads the volume directly
> by its internal functions like xfs_dir().
> 
> When I put 1 minutes of sleep() next to sync(),
> grub finds those files and is installed successfully.
> That's why I think a XFS partition needa much time to synchronize.

That's basically luck I'd say. a 5 minute delay there didn't show any
changes for me on some boxen.

// Stefan


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