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
Limitations
- Seek classification depends on filesystem behavior and can reflect page-cache state; it is not an exact allocation map. [4, 5, 7]
Citations
- Linux v6.8 iomap seek handling of unwritten extents
- Linux v6.8 page-cache seek classification
- Hesela: recorded sparse-copy observations and versioned method
Further reading
- Linux 6.12: FIEMAP extent states and access restrictions
- Sparse files, preallocation and thin-pool capacity
- Hesela: three-run ext4 allocation observation, source hashes and environment
- GNU coreutils v9.4 copy.c: sparse heuristic and copy paths
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.