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

Chris Wedgwood
2004-07-10T18:44:41Z

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