ffsck · research · also Fast File System Checker

ffsck

ffsck is a research filesystem checker that uses rext3's clustered, self-identifying metadata to replace inode-tree traversal with disk-order scanning.

Related Observatory article: Read on hesela.com

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. [1]

The 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. [1]

For 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. [3]

A 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. [2]

Cumulative 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. [1]

Under 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. [4]

Relations

related
Filesystem consistency invariant, Crash-consistent filesystem repair

Citations

  1. Ma et al. ffsck: The Fast File System Checker. FAST 2013, pp. 1-15, sections 4-6. (accessed 2026-12-04)
  2. Marshall Kirk McKusick. Improving the Performance of fsck in FreeBSD. ;login: 38(2), April 2013, pp. 20-22. (accessed 2026-12-04)
  3. Hesela: ffsck scan identity, exact counterexamples and limits (accessed 2026-12-04)
  4. Hesela: ffsck bitmap memory and grouped-rescan accounting (accessed 2026-12-04)
Sources & caveats
  • 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.

JSON: /data/terms/ffsck.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. ffsck. Hesela. 2026-12-04. https://hesela.dev/terms/ffsck/