prepSyncFileRange

Prepares sync_file_range(2) operation.

Sync a file segment with disk, permits fine control when synchronizing the open file referred to by the file descriptor fd with disk.

If len is 0, then all bytes from offset through to the end of file are synchronized.

nothrow @nogc ref @safe
SubmissionEntry
prepSyncFileRange
(
return ref SubmissionEntry entry
,
int fd
,
ulong offset
,
uint len
,
SyncFileRangeFlags flags = SyncFileRangeFlags.WRITE_AND_WAIT
)

Parameters

entry SubmissionEntry

SubmissionEntry to prepare

fd int

is the file descriptor to sync

offset ulong

the starting byte of the file range to be synchronized

len uint

the length of the range to be synchronized, in bytes

flags SyncFileRangeFlags

the flags for the command.

See Also

sync_file_range(2) for the general description of the related system call.

Note: available from Linux 5.2

Meta