SQCK
SQCK is a research filesystem checker that expresses metadata checks and repairs as declarative queries over relational tables.
SQCK loads ext2 metadata into tables, applies checks and repairs, then writes changes back. Its dependency ordering validates a structure's location before repairing its contents. [1]
Restoring structural consistency can still discard recoverable information or choose the wrong owner of shared blocks. SQCK explores these as separate repair-policy concerns. Its prototype flushes changes in place without a separate journal. [1]
The linked model contrasts early and late pointer validation in eight invented blocks. Both policies detach the same bad pointer, but only late validation overwrites the header. It does not execute a filesystem checker. [3]
In its ext2 study, SQCK distinguished locality-aware cloning from confidentiality policy: copying a contested block to both files can expose private bytes. Choosing a privileged path is a repair policy, not proof of original ownership. [1]
A synthetic two-file example gives identical damaged pointers from two different original assignments. All three illustrated policies remove duplicate block claims, but none reconstructs both original files. Independent evidence is needed to distinguish those histories. [4]
Relations
Advantages
- SQL separates repair intent from the low-level metadata scanner. [1]
Limitations
- The 2008 implementation and e2fsck 1.39 comparison do not characterize current checker behavior. [1]
- Repair interruption requires a separate persistence protocol, as studied by rfsck-lib. [2]
Citations
- Gunawi et al. SQCK: A Declarative File System Checker. OSDI 2008, sections 2.3-5.3.
- Gatla et al. Towards Robust File System Checkers. FAST 2018, sections 3-5.
- Hesela: repair-order model, exact cases, tests and assumptions
- Hesela: duplicate-block repair, ownership ambiguity and confidentiality
Sources & caveats
- SQCK is a historical research prototype. The full paper was read; no contemporary checker was fault-injected.
- The linked 22 cases are original synthetic examples, not SQCK evaluation results.
- The two-history example is synthetic and excludes legitimate shared extents. It does not establish a defect in any current checker.