{
  "slug": "ffsck",
  "term": "ffsck",
  "aliases": [
    "Fast File System Checker"
  ],
  "definition": "ffsck is a research filesystem checker that uses rext3's clustered, self-identifying metadata to replace inode-tree traversal with disk-order scanning.",
  "note": "The rext3 filesystem groups indirect blocks and directory blocks separately from ordinary file data. Backpointers identify metadata without first walking its inode tree. ffsck retains compact cross-check information after local checks. This trades allocation flexibility and memory for fewer seeks. [ffsck13]\n\nThe fast scan trusts allocation information. A bitmap/checksum disagreement triggers a traditional traversal. The prototype sums addresses separately for each file and indirect-tree layer; equal sums can miss collisions. [ffsck13]\n\nFor example, address sets {100, 103} and {101, 102} each contain two blocks and sum to 203, yet have no block in common. The linked executable example isolates this sum check, not the whole checker. It does not establish an undetected filesystem corruption. [hesela-scan-identity]\n\nA 2013 FreeBSD adaptation used a flexible metadata-placement hint and kept the first indirect block beside file data. It retained the disk format rather than implementing the complete rext3 design. [ffsck-freebsd13]\n\nCumulative bitmap snapshots narrow the inode group to rescan for a multiply claimed block; they do not identify the exact owner. More snapshots consume more memory. [ffsck13]\n\nUnder an explicit dense-bit-array assumption, 16 snapshots spanning 1 TiB at 4 KiB per block need 512 MiB for their bit payload alone. This is not total checker memory. Equal inode groups can have unequal metadata work, so a smaller rescan group does not imply proportional time savings. [hesela-memory-budget]",
  "status": "research",
  "advantages": [],
  "limitations": [],
  "related": [
    "filesystem-consistency-invariant",
    "crash-consistent-filesystem-repair"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "ffsck13",
      "title": "Ma et al. ffsck: The Fast File System Checker. FAST 2013, pp. 1-15, sections 4-6.",
      "url": "https://www.usenix.org/system/files/fast13-final52_0-v2_1.pdf",
      "accessed": "2026-12-04"
    },
    {
      "id": "ffsck-freebsd13",
      "title": "Marshall Kirk McKusick. Improving the Performance of fsck in FreeBSD. ;login: 38(2), April 2013, pp. 20-22.",
      "url": "https://www.usenix.org/system/files/login/articles/05a_mckusick_020-023_online.pdf",
      "accessed": "2026-12-04"
    },
    {
      "id": "hesela-scan-identity",
      "title": "Hesela: ffsck scan identity, exact counterexamples and limits",
      "url": "https://hesela.dev/research/ffsck-scan-identity/README.md",
      "accessed": "2026-12-04"
    },
    {
      "id": "hesela-memory-budget",
      "title": "Hesela: ffsck bitmap memory and grouped-rescan accounting",
      "url": "https://hesela.dev/research/ffsck-memory-budget/README.md",
      "accessed": "2026-12-04"
    }
  ],
  "updated": "2026-12-04",
  "provenance": [
    "Historical source review, not a benchmark replication or a recommendation to run prototype repair code on production data.",
    "FAST 2013 used Linux 2.6.28 and e2fsprogs 1.41.12. The FreeBSD follow-up used 8.3-STABLE r246915M; neither establishes current-version performance.",
    "The address-set example is an original exact-integer model, not a reproduction of ffsck, a current e2fsck defect or a measured error rate.",
    "The bitmap payload and weighted-rescan examples use hypothetical inputs, not measured prototype RAM, supported volume capacities or elapsed times."
  ]
}
