btrfs fscked up, too?
btrfs fscked up, too?
Posted Mar 16, 2009 18:07 UTC (Mon) by masoncl (subscriber, #47138)In reply to: btrfs fscked up, too? by forthy
Parent article: Garrett: ext4, application expectations and power management
We're mixing up a bunch of concepts here, but for a mailserver workload, in ext2 you have to fsync both the directory and the file in order to make sure a newly created file is on disk.
In ext3, ext4, reiserfs, xfs, and btrfs (and probably jfs), you only need to fsync the file. The journals include the directory data because the directory mods happened along with the file creation, and it actually isn't possible to get one without the other.
The btrfs log is a little different, but it explicitly goes out and finds the directory changes to make sure they are logged with the file during the fsync.
