The
fdatasync() function forces all modified data associated with the file descriptor
fd to be flushed to stable storage.
The functionality is as described for
fsync(2), with the exception that file status information need not be synchronized, which may result in a performance gain, compared to
fsync(2). This behaviour is commonly known as
synchronized I/O data integrity completion.