O'Reilly logo
  • Ivan Petrov thinks this is interesting:

#include <unistd.h>

int fdatasync (int fd);

This system call does the same thing as fsync( ), except that it only flushes data. The call does not guarantee that metadata is synchronized to disk, and is therefore potentially


Cover of Linux System Programming


flush data only