Messages in this thread | | | From | Bernd Eckenfels <> | Subject | Re: XFS: how to NOT null files on fsck? | Date | Tue, 13 Jul 2004 01:03:04 +0200 |
| |
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/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |