{
  "slug": "e2freefrag",
  "term": "e2freefrag",
  "aliases": [],
  "definition": "e2freefrag is an e2fsprogs utility that reports free-space extent sizes and fragmentation on ext2, ext3 and ext4 filesystems.",
  "note": "Reports concern unused allocation space, not an individual file's layout; reporting neither relocates data nor validates file contents. [e2freefrag-manual]\n\nThe -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. [e2freefrag-code]\n\nIn 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. [e2freefrag-code]\n\nEqual free capacity and equal extent lengths can hide different alignment. A histogram therefore cannot by itself establish how many aligned allocation regions are available.",
  "status": "shipping",
  "advantages": [],
  "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."
  ],
  "related": [
    "free-space-fragmentation",
    "allocation-bitmap",
    "filesystem-aging",
    "ext4"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-05",
  "citations": [
    {
      "id": "e2freefrag-manual",
      "title": "e2fsprogs v1.47.4: e2freefrag reporting and chunk-size option",
      "url": "https://raw.githubusercontent.com/tytso/e2fsprogs/v1.47.4/misc/e2freefrag.8.in",
      "accessed": "2026-12-05"
    },
    {
      "id": "e2freefrag-code",
      "title": "e2fsprogs v1.47.4: bitmap and online scan paths, histogram and chunk counters",
      "url": "https://raw.githubusercontent.com/tytso/e2fsprogs/v1.47.4/misc/e2freefrag.c",
      "accessed": "2026-12-05"
    },
    {
      "id": "e2freefrag-native",
      "title": "Hesela: e2freefrag offline reporting probe, versioned results and limitations",
      "url": "https://hesela.dev/research/e2freefrag/README.md",
      "accessed": "2026-12-05"
    }
  ],
  "provenance": [
    "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. [e2freefrag-native]"
  ]
}
