Storage glossary · JSON corpus · llms.txt · hesela.com

sync-file-range · shipping · also sync_file_range()

sync_file_range

sync_file_range is a Linux-specific operation that initiates or waits for page-cache writeback over a file range without synchronizing file metadata or flushing volatile device write caches.

Combining WAIT_BEFORE, WRITE and WAIT_AFTER does not remove those omissions. Preallocated space can still require allocation metadata updates, and copy-on-write overwrites cannot assume in-place blocks. Use it to control writeback, not as a general replacement for fdatasync or fsync.

Relations

related
fsync, fdatasync, msync, writeback-error

Advantages

Limitations

Citations

  1. Linux man-pages 6.19: sync_file_range(2), Warning and flag combinations (accessed 2026-10-13)
  2. Hesela: File and mapped-range synchronization boundaries (accessed 2026-10-13)

JSON: /data/terms/sync-file-range.json