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

From: Bernd Eckenfels
Date: Mon Jul 12 2004 - 17:31:38 EST


In article <20040712195956.GA14105@xxxxxxxxxxxxxxxxxxxxx> you wrote:
> Data sits in the page-cache though, and if you loose power before
> that's flushed you will loose data. This is why fsync is needed to be
> sure.

Yes right, I was confusing that with networked filesystems with
commit-on-close semantics.

Greetings
Bernd


BTW:
I was stracing java, and it is enough to do "fos.getFD().sync();
fos.close()" on FileOutputStrea to get a fsync(fd) followed by close(fd).
--
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/