Force committing of data to disk.
Source position: linux.pp line 395
function sync_file_range( |
fd: cint; |
offset: off64_t; |
nbytes: off64_t; |
flags: cuint |
):cint; |
sync_file_range forces the Linux kernel to write any data pages of a specified file (file descriptor fd) to disk. The range of the file is specified by the offset offset and the number of bytes nbytes. Options is an OR-ed combination of
If none is specified, the operation does nothing.
On return -1 is returned and fperrno is set to the actual error code. See the Linux man page for more on the error codes.
|
Synchronize the data in memory with the data on storage device. |