btrfs fscked up, too?
btrfs fscked up, too?
Posted Mar 16, 2009 14:29 UTC (Mon) by masoncl (subscriber, #47138)In reply to: btrfs fscked up, too? by endecotp
Parent article: Garrett: ext4, application expectations and power management
The contents of those files are determined by what other operations you've done on them, and in the past we've always expected the fsync.
The main places that list data integrity in the standard are the fsync page and O_SYNC/O_DSYNC portions of the write page. They are the only ways to make sure things are on disk.
The close man page explicitly states the data isn't on disk yet when the close happens unless you run fsync.
I do understand why app writers want a rename that works differently from what we're providing today, and it is important for filesystems to be able to grow new APIs to work with today's applications.
Re: do you need an fsync on the directory? I honestly don't know what other operating systems require. The last time I looked through various mail servers, the directory fsync was under a linux-is-evil kind of #ifdef.
