unwritten-extent · shipping · also uninitialized extent

Unwritten extent

An allocated filesystem extent whose data is not initialized and is exposed as zeros when read through the filesystem.

Unlike a hole it has allocation; unlike delayed allocation it has assigned storage. FIEMAP marks this state UNWRITTEN; direct-device contents are undefined, so filesystem zero reads do not establish device contents or sanitization. FIEMAP DELALLOC implies UNKNOWN, but UNKNOWN alone does not identify delayed allocation.

A three-file Hesela observation on ext4 found identical zero readback before and after allocation changes; this is a scoped example, not a universal physical-space measurement.

The allocation distinction does not mean SEEK_HOLE must exclude this extent: in a controlled ext4 test, a read changed seek classification while allocation and logical FIEMAP descriptors remained unchanged. Preserving the source bytes in a copy does not necessarily preserve its preallocation.

Relations

related
File extent, FIEMAP, File preallocation, Sparse file, Hole punching, Delayed allocation

Limitations

  • Seek classification depends on filesystem behavior and can reflect page-cache state; it is not an exact allocation map. [4, 5, 7]

Citations

  1. Linux v6.8 iomap seek handling of unwritten extents (accessed 2026-10-20)
  2. Linux v6.8 page-cache seek classification (accessed 2026-10-20)
  3. Hesela: recorded sparse-copy observations and versioned method (accessed 2026-10-20)

Further reading

  1. Linux 6.12: FIEMAP extent states and access restrictions (accessed 2026-10-16)
  2. Sparse files, preallocation and thin-pool capacity (accessed 2026-10-13)
  3. Hesela: three-run ext4 allocation observation, source hashes and environment (accessed 2026-10-16)
  4. GNU coreutils v9.4 copy.c: sparse heuristic and copy paths (accessed 2026-10-20)
Sources & caveats
  • Sparse-copy supplement: one host, Linux 6.8.0-146-generic, ext4/tmpfs and GNU cp 9.4-3ubuntu6.3. This is a file-level observation, not a crash, capacity-exhaustion or device-traffic test.

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

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Unwritten extent. Hesela. 2026-10-20. https://hesela.dev/terms/unwritten-extent/