This talk totally failed to properly discuss the issues of the various kinds of fsync, instead (it seems to me) just making a selection of vague comments. That is a shame, as really properly understanding file integrity is a really important issue, which is very easy to get very wrong.<p>When ext4 came out, I remember a large number of apps losing data, as the metadata and 'normal data' caches can get out of order, meaning that:<p>Write file B.
Rename B -> A.<p>Can result (after a crash) in A being empty, as the rename can occur before the contents of B are actually written.