SyncFileRangeFlags

Flags for sync_file_range(2) operation.

Values

ValueMeaning
NOOP0

no operation

WAIT_BEFORE1U << 0

Wait upon write-out of all pages in the specified range that have already been submitted to the device driver for write-out before performing any write.

WRITE1U << 1

Initiate write-out of all dirty pages in the specified range which are not presently submitted write-out. Note that even this may block if you attempt to write more than request queue size.

WAIT_AFTER1U << 2

Wait upon write-out of all pages in the range after performing any write.

WRITE_AND_WAITWAIT_BEFORE | WRITE | WAIT_AFTER

This is a write-for-data-integrity operation that will ensure that all pages in the specified range which were dirty when sync_file_range() was called are committed to disk.

See Also

sync_file_range(2) for details

Meta