eio_sync_file_range
eio_sync_file_range
Sync a file segment with disk
resource **eio_sync_file_range** mixed $fd int $offset int $nbytes int $flags int $pri callable $callback mixed $data
permits fine control when synchronizing the open file referred to by the file
descriptor with disk.
eio_sync_file_range``fd
fdFile descriptor
offsetThe starting byte of the file range to be synchronized
nbytes
Specifies the length of the range to be synchronized, in bytes. If
is zero, then all bytes from through
to the end of file are synchronized.
nbytes``offset
flags
A bit-mask. Can include any of the following values:
,
,
. These flags have
the same meaning as their
counterparts(see man page).
EIO_SYNC_FILE_RANGE_WAIT_BEFORE``EIO_SYNC_FILE_RANGE_WRITE``EIO_SYNC_FILE_RANGE_WAIT_AFTER*SYNC_FILE_RANGE_**SYNC_FILE_RANGE(2)
pri``callback``data
Arbitrary variable passed to .
callback
returns request resource on success,return.falseforfailure.
eio_sync_file_range