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