int fs_sync( void );
Description
- Flush any buffers retained in RAM to the underlying hardware device. The file system does not
currently perform any buffering, however future revisions of this library may introduce buffering
to improve performance. This function is similar to
fflush(), except that the entire file
system is synchronized instead of the data for just one file. Use fs_sync() in preference to
fflush() if there is only one extent in the filesystem.
Return value
-
0: Success.
!0: Failure.
ERRNO values
-
EIO - I/O error.
Library
- FS2.LIB
See also
- fflush (FS2)