Re: fsync in glib/gio
- From: Federico Mena Quintero <federico novell com>
- To: Morten Welinder <mortenw gnome org>
- Cc: gtk-devel-list gnome org, Alexander Larsson <alexl redhat com>
- Subject: Re: fsync in glib/gio
- Date: Fri, 13 Mar 2009 15:05:45 -0600
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]