Re: XFS: how to NOT null files on fsck?

From: Chris Wedgwood
Date: Sat Jul 10 2004 - 13:46:54 EST


On Sat, Jul 10, 2004 at 11:33:09AM -0700, L A Walsh wrote:

> My cases have been "vim" edited files. I'd sorta think once vim has
> exited, the data has been flushed, but that's just a WAG...

No, that's not the case. Normally when files are written the data
isn't not flushed immediately, it sits in memory (the page-cache) for
some (usually) small amount of time.

If the data is critical applications should fsync (or similar) as
required.

FWIW my standard method of shutdown is:

sync ; poweroff -f

sorta thing. I don't loose any data doing this, (at least nothing
I've noticed).


--cw
-
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/