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

Re: XFS data corruption 2



On Wed, Dec 11, 2002 at 09:27:54AM +0800, Tang Lingbo(Allan) wrote:

> How about to use O_SYNC for file data change?

Sure, that should work.  Performance will suck.

> It's also impossible to make sure the last write?

I would *guess* it will work, but it should be tested.  However, if it
does work, don't expect it to always work.

You *cannot* assume that writing to a file is the be-all-and-end-all
for data security --- it's not.  Mail Transfer Agents know this and
have code to deal with this as appropriate.


   --cw