Messages in this thread | | | Date | Wed, 25 Mar 2009 15:48:51 -0400 | From | Christoph Hellwig <> | Subject | Re: Linux 2.6.29 |
| |
On Wed, Mar 25, 2009 at 02:58:24PM -0400, Theodore Tso wrote: > omits the fsync(). So with ext4 we has workarounds that start pushing > out the data blocks in the for replace-via-rename and > replace-via-truncate cases, while XFS will do an implied fsync for > replace-via-truncate only, and btrfs will do an implied fsync for > replace-via-rename only.
The XFS one and the ext4 one that I saw only start an _asynchronous_ writeout. Which is not an implied fsync but snake oil to make the most common complaints go away without providing hard guarantees.
IFF we want to go down this route we should better provide strong guranteed semantics and document the propery. And of course implement it consistently on all native filesystems.
> Traditionally, the way applications told us about such dependencies > was fsync(). But if application programmers are demanding that > fsync() is no longer required for correct operation after a filesystem > crash, all we can do is push things out to disk much more > aggressively.
Note that the rename for atomic commits trick originated in mail severs which always did the proper fsync. When the word spread into the desktop world it looks like this wisdom got lost.
| |