- update super block
#include <unistd.h> void sync(void);
The sync() function writes all information in memory that should be on disk, including modified super blocks, modified inodes, and delayed block I/O.
Unlike fsync(3C), which completes the writing before it returns, sync() schedules but does not necessarily complete the writing before returning.
See attributes(5) for descriptions of the following attributes: