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

From: Bernd Eckenfels
Date: Mon Jul 12 2004 - 18:05:23 EST


Hello,

In article <40F03665.90108@xxxxxxxxx> 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/
-
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/