e2freefrag
e2freefrag is an e2fsprogs utility that reports free-space extent sizes and fragmentation on ext2, ext3 and ext4 filesystems.
Reports concern unused allocation space, not an individual file's layout; reporting neither relocates data nor validates file contents. [1]
The -c size uses KiB and must be a power of two. Version 1.47.4 accepts equality with the filesystem block size although its manual says larger. Histogram Percent is each bin's free-block share, not its extent-count share. [2]
In v1.47.4, a successful online scan updates extent statistics but not the free_chunks counter. Its zero is not proof of unavailable aligned space. Online failure falls back to bitmap scanning. [2]
Equal free capacity and equal extent lengths can hide different alignment. A histogram therefore cannot by itself establish how many aligned allocation regions are available.
Relations
Limitations
- A report is not an allocator-success or performance guarantee.
- Record tool version, scan path and concurrent filesystem activity; completion does not establish snapshot consistency.
Citations
- e2fsprogs v1.47.4: e2freefrag reporting and chunk-size option
- e2fsprogs v1.47.4: bitmap and online scan paths, histogram and chunk counters
- Hesela: e2freefrag offline reporting probe, versioned results and limitations
Sources & caveats
- Pinned manual and implementation review; source-level conclusions are not measured device behavior.
- The linked Observatory illustration reuses Hesela's existing aligned-capacity model and contains no native e2freefrag output.
- Offline native e2fsprogs 1.47.0 reporting on one disposable 16 MiB image confirmed the extra total-chunk denominator and acceptance of block-sized chunks; no mounted scan was tested. [3]