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

From: Andi Kleen
Date: Wed Jun 29 2005 - 18:17:27 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/