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

Bernd Eckenfels
2004-07-12T23:03:11Z

Hello,

In article <40F03665.90108@tlinx.org> you 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...

just a small background investigation, I checked joe:

open("test.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
write(3, "test\ntest\n", 10) = 10
close(3) = 0

... which does not fsync... (it is also not an option in the source)

and vim:

rename("test.txt", "test.txz~") = 0
open("test.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
write(3, " test\ntest\n", 11) = 11
close(3) = 0
chmod("test.txt", 0100664) = 0

... does no fsync, eighter.

Greetings
Bernd
--
eckes privat - http://www.eckes.org/
Project Freefire - http://www.freefire.org/