On Fri, Jan 7, 2011 at 3:01 PM, Olaf van der Spek <olafvds...@gmail.com> wrote: > According to Ted, via-truncate and via-rename are unsafe. Only fsync, > rename is safe. > Disadvantage of rename is resetting file owner (if non-root), having > issues with meta-data and other stuff. > > My proposal was for an open flag, O_ATOMIC, to be introduced to tell > the FS the whole file update should be done atomically. > Ted says this is too hard in ext4, so I was wondering if this would be > possible in btrfs.
http://thunk.org/tytso/blog/2009/03/12/delayed-allocation-and-the-zero-length-file-problem/#comment-2082 http://thunk.org/tytso/blog/2009/03/12/delayed-allocation-and-the-zero-length-file-problem/#comment-2089 http://thunk.org/tytso/blog/2009/03/12/delayed-allocation-and-the-zero-length-file-problem/#comment-2090 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html