file-extent · shipping · also filesystem extent

File extent

A filesystem mapping for a contiguous range of file blocks and the storage blocks backing that range.

Ext4 stores a starting file block, storage block and length for each extent, reducing mapping metadata for contiguous runs; this is a filesystem representation, not a statement about physical NAND placement. A FIEMAP mapping includes state flags, not just addresses; its synchronization option can change the state before reporting it. [1] [3]

Shared storage: distinct files can map the same storage after a reflink. FIEMAP_EXTENT_SHARED reports that state but carries no reference count. Summing shared lengths across files can count storage repeatedly, and the flag alone cannot identify what deleting a chosen set will free. [4] [5]

Copy granularity: coarse copy-on-write can copy unchanged data, while small copies can fragment later reads. FAST 2020 studied this trade-off in BetrFS 0.5 using buffered updates. Its historical HDD evaluation does not establish a current SSD performance ranking. [6]

Relations

related
Unwritten extent, Sparse file, File preallocation, Reflink, FIEMAP, Filesystem block

Citations

  1. Linux 6.12: ext4 extent tree and mapping format (accessed 2026-10-13)
  2. Linux 6.12: FIEMAP ioctl, flags and access restrictions (accessed 2026-10-16)
  3. Linux v6.12: FIEMAP extent structure and shared-storage result bit (accessed 2026-11-21)
  4. Btrfs-progs v6.16: per-set FIEMAP extent accounting (accessed 2026-11-21)
  5. Zhan et al., How to Copy Files, FAST 2020, sections 1 and 5.1 (accessed 2026-11-21)

Further reading

  1. Sparse files, preallocation and thin-pool capacity (accessed 2026-10-13)
Sources & caveats
  • The FAST 2020 paper was read beyond its abstract, including the clone design and evaluation method. This entry reports a mechanism, not a reproduced benchmark.
  • The paper evaluates BetrFS on a modified Linux 3.11.10 kernel and other filesystems on 4.9.142, using a 7200 RPM SATA disk.

JSON: /data/terms/file-extent.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. File extent. Hesela. 2026-11-21. https://hesela.dev/terms/file-extent/