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
Citations
- Linux 6.12: ext4 extent tree and mapping format
- Linux 6.12: FIEMAP ioctl, flags and access restrictions
- Linux v6.12: FIEMAP extent structure and shared-storage result bit
- Zhan et al., How to Copy Files, FAST 2020, sections 1 and 5.1
Further reading
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.