[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: XFS data corruption 2



> -----Original Message-----
> From: linux-xfs-bounce@oss.sgi.com 
> [mailto:linux-xfs-bounce@oss.sgi.com]On Behalf Of Chris Wedgwood
> Sent: Wednesday, December 11, 2002 4:51 AM
> To: Lukas Hejtmanek
> Cc: linux-xfs@oss.sgi.com
> Subject: Re: XFS data corruption 2
> 
> 
> On Tue, Dec 10, 2002 at 08:41:00PM +0100, Lukas Hejtmanek wrote:
> 
> > today we've had power failure again I've noticed that I've got
> > binary nulls in files last modified 19 minutes ago the power
> > failure.
> 
> metadata is journalled --- not data; if you write to a file and crash
> (for example) you may see null bytes at the end of the file or similar
>

How about to use O_SYNC for file data change?
It's also impossible to make sure the last write?
 
> > Is that ok?
> 
> depends on your application; many applications know about these things
> and will deal with it one way or another (eg. mail software and
> databases).
> 
> > Or there is a bug in xfs recovery?
> 
> no
> 
> 
> 
>   --cw
> 
>