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

copy-file-range · shipping

copy_file_range

copy_file_range is a Linux system call that copies a requested file range in the kernel and reports the number of bytes actually copied.

Related Observatory article: copy_file_range on hesela.com

A successful call may copy fewer bytes than requested, and zero can indicate EOF. Implementations may accelerate copying with reflinks or server-side copy; success alone does not identify physical allocation. Sparse holes can expand. [1]

Relations

related
reflink, sparse-file

Citations

  1. Linux man-pages 6.19: copy_file_range(2), return values and notes (accessed 2026-10-15)
  2. Hesela: Fast file clones and deferred copying costs (accessed 2026-10-15)

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