xfs
[Top] [All Lists]

Re: SPAM: Re: XFS corruption during power-blackout

To: Chris Wedgwood <cw@xxxxxxxx>
Subject: Re: SPAM: Re: XFS corruption during power-blackout
From: Andi Kleen <ak@xxxxxxx>
Date: 30 Jun 2005 01:11:03 +0200
Cc: Al Boldi <a1426z@xxxxxxxxx>, "'Nathan Scott'" <nathans@xxxxxxx>, linux-xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, reiserfs-list@xxxxxxxxxxx
In-reply-to: <254889.27725ab660aa106eb6acc07307d71ef1fbd5b6fd366aebef9e2f611750fbcb467e46e8a4.IBX@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <20050629001847.GB850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <200506290453.HAA14576@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <556815.441dd7d1ebc32b4a80e049e0ddca5d18e872c6e8a722b2aefa7525e9504533049d801014.ANY@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <42C2E0BC.8040508@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <254889.27725ab660aa106eb6acc07307d71ef1fbd5b6fd366aebef9e2f611750fbcb467e46e8a4.IBX@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
Chris Wedgwood <cw@xxxxxxxx> writes:

> If caching is enabled I still lose data.  Linux does have a concept of
> write barriers but these are presently not implemented for XFS right
> now.

I implemented them some time ago for log writes in XFS. Not for fsync though,
although fsync usually does a log write afterwards so it should work
in practice too. fdatasync might not.

Don't know if the code hasn't bit rotted away and it also was a bit
dumb. It was definitely there at some point.

But then a lot of ATA disks and SCSI don't support barriers. Or at least
the IDE barrier tests fails on several of my machines.

-Andi


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