fsync
fsync is a file-synchronization operation that requests persistence of a file's modified data and associated metadata before reporting completion.
On Linux, syncing the file does not necessarily persist its containing directory entry; the directory needs its own sync. fdatasync may omit metadata unnecessary for retrieving the data. A failed sync must be treated as an unresolved durability event, not silently replaced by a later successful return.
Relations
- related
- crash-consistency, writeback-error, write-back-cache