Skip to content

Research & analyses / Filesystem integrity

Online filesystem repair: availability is not data recovery

Published / Primary-source review

A filesystem can remain available while some files are unreadable. It can become structurally consistent without recovering their original contents. And its repair procedure can itself need crash recovery. These are different acceptance criteria, not interchangeable meanings of "repaired".

On this page8 sections

Four problems, distinct intervention points

Editorial comparison of the cited designs, not a performance ranking or a list of interchangeable tools.
DesignWhen it intervenesPurposeBoundary
ReconBefore a metadata transaction commitsReject an invariant-breaking updateRequires a consistent starting state
WAFL IronWhile clients use a damaged filesystemReconstruct or isolate metadataAccessible does not mean every file is recoverable
SQCKDuring checking and repair write-backValidate dependencies before using themLogical ordering is not crash atomicity
rfsckIf a checker stops during repairRecover the repair process itselfDoes not make an offline checker safe on a mounted volume

Recon: stop an invalid change before commit

Recon checks relationships between metadata updates at transaction boundaries. For example, adding a block pointer must agree with allocation bookkeeping. A checksum on each block cannot by itself establish that relationship. [1, sections 2.1-2.2]

The reasoning starts from a consistent filesystem and assumes correct checking code, protected checker state and a functioning lower storage stack. Its ext3 design also depends on identifying metadata through pointer traversal; a misdirected write can escape that identification. This is prevention under stated assumptions, not reconstruction of already-lost data. [1, sections 2.3-2.4]

WAFL Iron: availability has a resource cost

WAFL Iron combines background scanning with access-time checks. Operations can wait while metadata is validated to prevent subsequent repair from revoking exposed state. [2, sections 4.1-4.3]

Unknown is not free. Damaged reference counts are quarantined conservatively, keeping the affected blocks unavailable for new allocation. A shadow count is reconstructed as references are discovered. Extensive quarantine can exhaust allocatable space and force offline completion. [2, sections 4.4.2 and 4.6]

Derived metadata can be recomputed; damaged primary metadata may instead require tombstones and orphan recovery. Some reads then return errors. Severe damage to upper-level metadata prevents startup of repair. [2, sections 3.1 and 4.4.1]

The paper also discusses a latent-reference-count window in which an unclaimed block may be reused. Its comparison with offline repair includes this qualification; do not turn that comparison into an unconditional no-data-loss guarantee. [2, section 4.5]

SQCK: checking order and write-back order differ

SQCK, an OSDI 2008 ext2 research prototype, separates two orders. During checking, validate a structure's location before repairing its contents. If an inode-table pointer is wrong, invalidate the already-loaded inodes, extents and directory entries derived from it. Fixing the pointer alone leaves false evidence in the checker's tables. [4, sections 3.3.2 and 4.2]

Write-back has a different dependency: repaired blocks precede pointers to them. That does not make repair crash-atomic. SQCK updates in place without a separate journal, leaving interrupted-repair protection for future work. [4, section 4.3]

The paper's Linux 2.6.12/e2fsck 1.39 evaluation is historical; it does not diagnose present-day e2fsck. [4, section 5.3]

Hesela's executable repair-order example shows why the final pointer is an insufficient test oracle: both policies detach it, but one also overwrites a header. Its trusted block roles are supplied inputs, not recovered facts. This existing synthetic model illustrates checking order only; it does not execute SQCK or model write-back durability.

rfsck: protect the writes made by repair

Gatla and colleagues studied what happens when a checker is interrupted. Their test method replayed prefixes of recorded atomic-block writes on corrupted images, then compared recovery with an uninterrupted reference run. It was not a survey of real-world failure rates. [3, sections 3.1-3.3]

They identified missing durable ordering between undo-log writes and repair writes in the historical e2fsck implementation. Calling the log write first was insufficient when both writes were asynchronous. Their rfsck library separates logging from applying repairs. [3, sections 4-5]

This addresses crash-consistent repair, not concurrent client access. The atomic-write fault model does not cover every torn write or storage failure, and the historical findings are not a vulnerability claim about current releases. [3, sections 3.2 and 7]

What to verify before calling recovery complete

Hesela's engineering checklist separates five questions. Record each answer against the same filesystem image and recovery run:

  1. Access: which paths and operations work, and which still fail?
  2. Consistency: which metadata relationships were checked, and did that check finish?
  3. Dependencies: which decisions were invalidated when their supporting metadata was rejected?
  4. Contents: do critical files match a trusted reference, including the expected version?
  5. Restart: what durable evidence allows the repair itself to recover after interruption?

Keep the original image and relevant logs when feasible, follow the filesystem's supported recovery procedure, and assess application contents separately. A mounted volume or a clean structural check answers only part of the recovery question.

Method and limits

Primary-paper synthesis and an editorial comparison; no prototype execution, fault injection or new performance measurement. Historical research designs, not guarantees for current product releases. Metadata consistency does not establish preservation of application contents.

Continue with checksum coverage and checker interruption, identity and lost writes, or the corpus definition of background fsck.

Primary sources

  1. Fryer, Sun, Mahmood, Cheng, Benjamin, Goel and Brown. Recon: Verifying File System Consistency at Runtime. FAST 2012, sections 2.1-2.4 and 4.4.
  2. Kesavan, Kumar and Bhowmik. WAFL Iron: Repairing Live Enterprise File Systems. FAST 2018, pp. 33-48, sections 3.1 and 4.1-4.7.
  3. Gatla, Hameed, Zheng, Dubeyko, Manzanares, Blagojevic, Guyot and Mateescu. Towards Robust File System Checkers. FAST 2018, pp. 105-122, sections 3.1-3.3, 4-5 and 7.
  4. Gunawi, Rajimwale, Arpaci-Dusseau and Arpaci-Dusseau. SQCK: A Declarative File System Checker. OSDI 2008, sections 3.3.2, 4.2-4.3 and 5.3.

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. Online filesystem repair: availability is not data recovery. Hesela. 2026-12-04. https://hesela.com/analyses/online-filesystem-repair/