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
void
prepSyncFileRange
@safe
(
ref SubmissionEntry entry
,
int fd
,
ulong offset
,
uint len
,
SyncFileRangeFlags flags
)

Parameters

entry
Type: SubmissionEntry

SubmissionEntry to prepare

fd
Type: int

is the file descriptor to sync

offset
Type: ulong

the starting byte of the file range to be synchronized

len
Type: uint

the length of the range to be synchronized, in bytes

flags
Type: 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