Re: fsync in glib/gio



On Fri, 2009-03-13 at 09:15 -0400, Morten Welinder wrote:

> F*** "POSIX allows this"!  A program that does open-write-close-
> rename should not be left with an empty file in case something
> goes wrong.  The old file, or the new file.  Anything else is insane
> and by extension the kernel developers and their ancestors.

100% agreed.

Has anyone actually debugged why this happens?  The kernel must surely
ensure that even if it reorders data/metadata requests, it will do so in
sensible ways only, doesn't it?

  Federico



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]