sqck · research · also Declarative file system checker

SQCK

SQCK is a research filesystem checker that expresses metadata checks and repairs as declarative queries over relational tables.

Related Observatory article: Read on hesela.com

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

related
Filesystem consistency invariant, Crash-consistent filesystem repair, Background fsck, Recon

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

  1. Gunawi et al. SQCK: A Declarative File System Checker. OSDI 2008, sections 2.3-5.3. (accessed 2026-12-04)
  2. Gatla et al. Towards Robust File System Checkers. FAST 2018, sections 3-5. (accessed 2026-11-23)
  3. Hesela: repair-order model, exact cases, tests and assumptions (accessed 2026-11-23)
  4. Hesela: duplicate-block repair, ownership ambiguity and confidentiality (accessed 2026-12-04)
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.

JSON: /data/terms/sqck.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

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