lkml.org 
[lkml]   [2004]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: XFS: how to NOT null files on fsck?
Date
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/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.076 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site