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

From: Bernd Eckenfels
Date: Sat Jul 10 2004 - 16:26:14 EST


In article <20040710184357.GA5014@xxxxxxxxxxxxxxxxxxxxx> you wrote:
> 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.

Does that mean, that closing a tempfile and then renaming the file is not
a reliable way to tell, that the data is persited? I usually use a atomic
rename to have a point from which on I can tell if the data is complete
and persisted.

I thought close() has fsync() semantics?

Greetings
Bernd
--
eckes privat - http://www.eckes.org/
Project Freefire - http://www.freefire.org/
-
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/