sys_fdatasync  [fs/buffer.c]


Flushes all data buffers of a file to disk. This system call is identical to sys_fsync except it only flushes user data, not the meta data like the st_atime or st_mtime (respectively, time of last access and time of last modification).

Arguments

eax 148
ebx File descriptor.

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values (depending on the file systems other error values may be returned):

-EBADF ebx is not a valid file descriptor open for writing.
-EROFS, -EINVAL File descriptor is bound to a special file which does not support synchronization.
-EIO An error occurred during synchronization.

Remarks

The flushing is finished before the system call returns.

Compatibility

n/a