Skip to content

Research notes

Filesystem integrity: ZFS, Btrfs, ReFS and NTFS

Published 2026-10-11 · Updated 2026-11-13

Clean counters and a matching NTFS MFT mirror do not prove file integrity. Compare the coverage and limits of ZFS, Btrfs, ReFS and NTFS checks.

On this page20 sections
Question
What was checked, at which layer, and under which software version?
Operational evidence
OpenZFS v2.3 counter contracts and Btrfs device/scrub documentation. ReFS file-data coverage/enforcement and NTFS consistency checks.
Historical evidence
Selected historical fault-injection studies, prototype policies and an attributed incident; not current fleet incidence.
Hesela contribution
Auditable arithmetic, native-library NTFS fixtures and unmounted-image mirror-coverage comparisons; none estimates production failure rates.

What each filesystem counter counts

Distinct observations, not a common failure-rate denominator. OpenZFS rows use the v2.3 manuals; Btrfs rows use the documentation reviewed on 14 October 2026.
CounterWhat it countsScopeUnit or thresholdSource
ZFS READ, WRITE, CKSUM (JSON: read_errors, write_errors, checksum_errors)Read, write and checksum error counters associated with each displayed vdev; do not sum hierarchy levels as independent incidentsEach vdev from leaf disk up to poolevents (count)OpenZFS zpool-status(8)
ZFS checksum errorReturned data did not validate; an unreconstructable block can implicate several devices rather than uniquely identify the faulty componentPer block read or scrubbedevents (count)OpenZFS zpoolconcepts(7)
ZFS slow I/O (zpool status -s)I/O exceeding zio_slow_io_ms, not necessarily failed I/OLeaf vdevs30,000 ms by defaultOpenZFS zpool-status(8)
btrfs write_io_errs, read_io_errs, flush_io_errsFailed writes, failed reads, and failed writes carrying the FLUSH flag, that the layers beneath the filesystem could not satisfyPer device, persistent across mountsevents (count)btrfs-device(8)
btrfs corruption_errs, generation_errsA block checksum mismatch or a corrupted metadata header; a block generation that does not match the value expected (for example stored in the parent node)Per device, updated during use or by scrubevents (count)btrfs-device(8)
btrfs scrub error summary (csum, super, verify, read; Corrected, Uncorrectable, Unverified)Checksum mismatches, superblock errors, metadata header errors and unreadable blocks; Corrected means repaired from another copy, Unverified means a first read failed but a retry succeededPer scrub run; exit status 3 means uncorrectable errors foundevents (count)btrfs-scrub(8)
OpenZFS Direct I/O verification (zpool status -d)Read/write checksum verification errors for Direct I/O; buffer changes while I/O is in flight are a documented possibilityTop-level vdev; distinct from leaf slow-I/O countsevents (count)OpenZFS zpool-status(8)

One failing drive seen from five layers at once

Values pasted in OpenZFS issue 10214 for a WD40EFAX (4 TB, firmware 82.00A82, 540 power-on hours) during a zpool replace in a 5-disk RAIDZ1. 'As pasted' means copied from the log; the resilver was at 27.61% when the zpool status was pasted and the smartctl output was pasted the next day. h = hours, K = thousand.
Layer and signalValue as pastedReads as a fault?UnitSource
SMART overall-health self-assessmentPASSEDNoverdictOpenZFS issue 10214, 2020
SMART attributes 5, 197, 198, 199 (Reallocated, Pending, Offline_Uncorrectable, UDMA_CRC)0, 0, 0, 0Noraw countOpenZFS issue 10214, 2020
ATA Extended Comprehensive error log, Device Error Count7,487 (log keeps only the most recent 24; the 8 entries pasted are all IDNF)YeserrorsOpenZFS issue 10214, 2020
ZFS WRITE counter on the new disk, with READ and CKSUMWRITE 47.7 K, READ 0, CKSUM 0Yes in WRITE onlyeventsOpenZFS issue 10214, 2020
ZFS pool-level linestate ONLINE; errors: No known data errorsNostatus textOpenZFS issue 10214, 2020

Observed trials versus a derived single-bit estimate

Corrupt-read outcome R only. Reported P16 intervals are 95% intervals. Recomputed endpoints transform rounded published endpoints; they are not new confidence intervals.
WorkloadObserved P16(R) [interval]Recomputed P1(R) [endpoints]Published P1(R)Source
varmail9% [4, 17]0.59% [0.25, 1.16]0.6%Zhang et al., FAST 2010
oltp26% [17, 36]1.86% [1.16, 2.75]1.9%Zhang et al., FAST 2010
webserver11% [5, 19]0.73% [0.32, 1.31]0.7%Zhang et al., FAST 2010
fileserver69% [58, 78]7.06% [5.28, 9.03]7.1%Zhang et al., FAST 2010

Zhang et al. used a Solaris Express build 108 VM, ZFS pool v14, 2 GB non-ECC RAM and one disk. Section 6 ran 100 trials per workload, injecting 16 random flips after three minutes and observing five more minutes. Single-bit estimates were derived, not measured in single-bit trials.

Under the paper's independence assumption, p1 = 1 - (1 - p16)^(1/16). Hesela recomputes the printed corrupt-read percentages above. This reproduces arithmetic, not the experiments. Rounded inputs can explain differences from the published single-bit interval endpoints.

Read, write and crash outcomes can overlap. Final-file checks can miss intermediate corruption that was overwritten. These historical, workload-conditional results are not present-day OpenZFS failure rates. FAST 2010, sections 4.2 and 6.

Executable calculation, provenance and JSON results and the fault-injection definition accompany this review.

Where a clean counter is insufficient

Coverage, recovery and attribution are separate questions. These are documented boundaries, not measured failure probabilities.
BoundaryWhat followsSource
Btrfs NOCOW / NODATASUMScrub still checks metadata, but cannot checksum file contents that lack data checksums. A replica alone does not tell it which contents are correct.btrfs-scrub(8)
Btrfs generation errorsA metadata generation can disagree with the expected generation independently of whether a checksum matches.btrfs-device(8)
No usable redundancyDetection can report damage without being able to reconstruct the affected data.OpenZFS zpoolconcepts(7)
Direct I/O write-buffer changesOpenZFS can detect a changing buffer during an in-flight write; an integrity event is not automatically proof of damaged media.OpenZFS v2.3 zfs(4)

NTFS: what the sequence check accepted

Synthetic 512-, 1024- and 4096-byte buffers, one Ubuntu NTFS-3G library. Counts are fixture coverage, not failure rates. First/last-marker controls coincide for the one-stride buffer. No Windows or full MFT validation.
FixtureAccepted / testedEvidence
Unchanged record3 / 3Read-fixture results
One interior bit changed3 / 3Read-fixture results
One saved trailer bit changed3 / 3Read-fixture results
First marker changed0 / 3Read-fixture results
Last marker changed0 / 3Read-fixture results
Entire alternative record3 / 3Read-fixture results
Byte count instead of element count0 / 3Read-fixture results
Zero array count0 / 3Read-fixture results
Odd array offset0 / 3Read-fixture results
Array overlaps first trailer0 / 3Read-fixture results
Other-record sectors, same marker2 / 2Read-fixture results
Other-record sectors, different marker0 / 2Read-fixture results
Length not divisible by 5120 / 2Read-fixture results

NTFS: the same routine needs the right buffer state

Four of eight controlled sequences, each at 512, 1024 and 4096 bytes. Payload comparison covers bytes 100 through end, excluding the header and array. A void restore call is not a successful verification. These are deliberate caller-misuse controls, not production incidents.
SequenceFinal operationOriginal payload matchedSource
Read fixup applied twice3 errors3 / 3Lifecycle results
Protect, restore, protect, checked read3 checked successes3 / 3Lifecycle results
Protect twice, then checked read3 checked successes0 / 3Lifecycle results
Bad marker passed to unchecked restore3 unchecked calls (no status)3 / 3Lifecycle results

A modern boundary: the in-flight Direct I/O buffer

OpenZFS v2.3 documents zfs_vdev_direct_write_verify: when enabled, it rechecks a Direct I/O write before committing its checksum to the block pointer, returning EIO if verification fails. Its documented default is enabled on Linux and disabled on FreeBSD, where user pages can instead be write-protected. zfs(4).

The separate zpool status -d view exposes Direct I/O verification errors. The v2.3 manual also describes read verification failures caused by changing an in-flight buffer, with the read reissued through the ARC. zpool-status(8). Our interpretation: investigate the application buffer lifetime and I/O path as well as hardware; this counter alone does not identify the cause.

This version-specific mechanism is not a claim that all memory corruption is detected, nor evidence that the old injection study measured this path. Do not disable integrity checks based on a historical experiment or a counter name.

ReFS: check coverage, enforcement and repair separately

ReFS checksums metadata; file-data checksums are optional. With a suitable Storage Spaces mirror or parity space, repair can use a valid alternate copy. A filesystem name alone establishes neither file-data coverage nor a usable repair source. ReFS overview.

Integrity settings are inherited from parent directories, and the scrubber can validate file data only where integrity streams are enabled. Inspect the relevant files, not just a directory policy. Integrity streams.

Defaults need context: the integrity overview describes file-data checksums as off by default, whereas the format /I documentation describes default enablement on storage supporting redundancy. Do not turn either statement into a universal claim about an existing file. Format documentation.

For an existing ReFS file, this read-only PowerShell query reports settings; it does not scan the payload. Replace the example path with the intended file:

Get-FileIntegrity -FileName 'H:\Data\example.bin'

  • Enabled describes integrity enablement. Microsoft shows output with Enabled=False and Enforced=True; the latter is not proof of checksum coverage. Get-FileIntegrity.
  • Enforced concerns blocking access when corruption is detected. The separate Set-FileIntegrity -Enforce parameter controls that behavior; setting it true also enables integrity. Do not infer blocking from Enabled alone. Set-FileIntegrity.
  • Repair evidence must establish the availability of a valid recovery copy and the outcome, not merely that checking was enabled. An online volume can still have inaccessible damaged data. ReFS resiliency.

A clone shares storage, not recovery independence

ReFS block cloning requires source and destination files on the same volume with matching integrity-stream settings. It shares physical storage through metadata; later writes to shared regions allocate new storage. A successful clone is therefore not evidence of a second independent repair copy. Check compatibility before relying on clone performance; do not disable integrity just to make a copy optimization available. Microsoft's cloning contract; clone lifecycle and capacity costs.

For lower-level diagnostics, FSCTL_GET_INTEGRITY_INFORMATION_BUFFER reports the checksum algorithm and enforcement flags separately, as well as checksum-chunk and volume-cluster sizes. Record both sizes; do not infer the checksum's unit from allocation geometry. These fields describe configuration, not completed verification. Win32 result structure.

NTFS addresses another boundary: its recovery log supports filesystem consistency after interruption. chkdsk /scan is an online NTFS check, not a guarantee of read-only operation: its companion option to force offline fixes explicitly bypasses online repair. Hesela's interpretation: these checks do not compare application contents with a trusted original. NTFS overview; chkdsk.

This Windows comparison is a documentation review, not a fault-injection or command-execution result. Corpus: ReFS, integrity streams and NTFS.

Storage Spaces: placement is not checksum coverage

Start with the layers. Storage Spaces turns pooled drives into virtual disks; simple spaces lack drive-failure redundancy. Storage Spaces Direct adds a clustered architecture using server-local drives. Neither name establishes which file bytes ReFS checks. Pool and layout model; cluster architecture.

Two mechanisms that should not share one label

Mirror-accelerated parity combines mirror and parity regions within a ReFS volume. Writes can enter mirror and later rotate to parity. If mirror space is insufficient, writes can go directly to parity. Reads do not themselves move parity data into mirror. Documented I/O behavior.

The S2D storage-pool cache instead operates at the drive layer, below volume resiliency. When a cache is configured, flash capacity defaults to write-only caching and HDD capacity to read/write caching. Recently written data awaiting destaging is an exception to flash reads coming from capacity. A read served from that cache is not evidence that ReFS moved the data into a mirror region. Drive-cache scope.

The volume arrangement requires ReFS, but is not exclusive to S2D. Standalone Storage Bus Cache is documented for a Server 2022 hybrid system without cluster membership. ReFS requirement; standalone prerequisites.

For resilient mirror-accelerated-parity volumes, the bus cache accelerates reads while the ReFS mirror tier absorbs writes in Shared mode. Simple spaces permit read/write caching but tolerate no drive failure. Shared mode reserves only part of the fast media for cache. Standalone cache and resiliency.

For an integrity investigation, keep three questions separate: which bytes have checksums, which redundancy can supply usable recovery data, and which checks or repairs actually completed. This is Hesela's operational interpretation of the layer distinction, not a new failure-rate measurement. The preceding ReFS coverage checks still apply.

A research comparison explains why that separation matters. Krioukov et al.'s FAST 2008 study models one RAID stripe with one injected error and collision-free checks. Reusing unchecked or stale data during parity maintenance can spread an initial error into parity. This is a model-checking result about protection protocols, not a test of ReFS or Storage Spaces. Hesela's inference: a mirror/parity layout names redundancy; it does not by itself establish validation coverage or correct recovery. Parity Lost and Parity Regained, sections 3-4.

Source review only. No Windows cluster, cache benchmark or failure-injection experiment was executed for this section.

NTFS fixups: matching markers are not matching contents

An update sequence array protects selected multisector metadata records. Before restoration, the last two bytes of each 512-byte stride must match the array's marker. The displaced words are then put back. This NTFS v3 mechanism is distinct from comparing every record byte with a checksum. Microsoft's structure contract.

Hesela executed 36 read fixtures and 5 pre-write transitions using an already-installed Ubuntu NTFS-3G library. Changed interior bytes and changed saved trailer words passed the routine; the latter changed the bytes restored into the record. Substituting later strides from another fixture also passed when its markers matched. Different-marker substitutions failed. These are deliberately constructed buffers, not damaged files recovered from a disk.

The 1024-byte fixture stores 3 at the count field: one marker and two saved words, occupying six bytes. A count of six was rejected. Microsoft's member description calls this field a byte size, whereas the pinned implementation uses an element count. The distinction matters for parser bounds. The tested pre-write transition also maps 65534 to 1; the marker is cyclic, not a globally unique generation identifier. Pinned implementation.

A useful comparison is Bairavasundaram et al.'s FAST 2008 taxonomy: checksum, block-identity and parity checks detected different corruption classes in a WAFL storage fleet. That paper did not evaluate NTFS fixups. Its lesson here is methodological: name the check and its scope before treating success as evidence of integrity. Sections 2.2-3.2.

A fixup is a transformation, not a repeatable predicate

An additional 24-sequence experiment made 48 native calls per capture. Applying read fixup twice caused the second call to report EIO even though the first call had correctly restored the payload. Applying pre-write protection twice without restoring the buffer first overwrote the saved original trailer words. A later checked read returned success but restored those earlier marker values as payload. Correctly paired writer controls preserved the original bytes.

The separate ntfs_mst_post_write_fixup helper returns no status and assumes a preceding valid writer operation. In a deliberate misuse control, it restored a buffer whose damaged marker the checked reader rejected. Zero errno after this void call is not an integrity verdict. Keep raw input separate from transformed buffers, track their state, and use the checking reader for input validation. Exact lifecycle observations; API contracts.

Gunawi et al.'s FAST 2008 EIO paper analyzed error propagation in Linux 2.6.15.4, with selected fault-injection checks. Its methodology distinguishes an ignored error return from other status channels and acknowledges incomplete modeling. Our inference is narrower: callers must know whether an operation reports validation at all. A deliberately void writer helper is not itself an error-propagation bug. These fixtures do not audit production callers or reproduce that paper. Method and limitations, sections 2.1-2.2.4 and 3.1.3.

The two captures are exact repeats on one host, not independent environments. The records have a multisector header but no complete MFT attribute structure. No Windows driver, volume, repair command or physical device was tested. The result is not an NTFS vulnerability claim or a measured probability of undetected corruption.

Method and reproduction, executable fixtures, retained observations and the corpus definition.

Lifecycle evidence: method and call sequences, executable lifecycle checks and complete recorded calls.

NTFS: a matching mirror can exclude the file you need

$MFTMirr copies a bounded initial part of the MFT, not every file record. Microsoft describes the first four records. NTFS-3G 2022.10.3 additionally derives capacity from cluster and record sizes. Do not turn that implementation-specific capacity into a guarantee about current Windows volumes. Microsoft's description; pinned NTFS-3G reader.

Hesela created four unmounted 64 MiB scratch file images with 512-byte sectors. Each had four states: formatted, small file added, large file added, and small file overwritten. The table comes from retained native exports. All mirrored bytes matched their corresponding MFT prefix, yet both newly created file records lay outside that prefix.

Observed NTFS-3G mirror coverage. Record size: 1024 bytes; indices are zero-based. Four geometries, four states each, two same-host captures: 32 observations, not a reliability sample.
Cluster bytesMirror bytesCopied record indicesNew file records
51240960 to 364 and 65
409640960 to 364 and 65
819281920 to 764 and 65
65536655360 to 6364 and 65

With 65536-byte clusters, the freshly formatted MFT and mirror were equally long. The first file grew the MFT to 66560 bytes, leaving the mirror at 65536. Record 64 was already outside copied indices 0 to 63. Coverage at creation did not persist after growth.

Overwriting the 129-byte resident file changed its payload and the MFT without changing any mirror byte. All eight before/after contrasts across the two captures showed that distinction. The 8192-byte nonresident file provided a separate readback control. These are repeated synthetic fixtures on one host, not eight independent populations. Exact comparisons and hashes.

Storage coverage and comparison coverage are different. The pinned NTFS-3G mount path stops its mirror-comparison loop at the smaller of mirror capacity and FILE_first_user, which is 16. For a 64-record mirror, this loop considers only records 0 to 15; it compares each record's reported data size, not necessarily all 1024 bytes. This is source inspection, not a mounted-volume experiment, and differs from our byte-for-byte comparison of the whole exported mirror. Comparison loop; record boundary.

For recovery reasoning, ask which records are copied, whether the copied bytes are current, and whether they contain the required payload or only describe storage elsewhere. A copy of metadata that locates nonresident content is not a copy of that content. MFT records and attributes. The earlier fixup experiment tests detection within an input; this experiment tests what a redundant copy omits.

This is a coverage counterexample, not a new NTFS defect. The writer and native inspector share NTFS-3G; independent checks decode boot fields and compare bytes. No Windows execution, injected media fault, repair trial or recovery-success rate is claimed. Maintainer comments about Windows mirror updates are attributed comments, not Windows measurements by Hesela. Bounded upstream comparison.

Reproduce: method and limitations, code and complete retained evidence (ZIP), table data, source scopes and SHA-256 manifest. Corpus: NTFS.

An online drive can still fail part of a filesystem

IRON's fail-partial model includes inaccessible blocks and silently altered contents, not only total device failure. Faults may persist or disappear on retry. Therefore, successful access to one block does not validate another. SOSP 2005, section 2.3.

Read the outcome, not just the headline percentage

Jaffer et al.'s ATC 2019 study examined ext4, Btrfs and F2FS through deliberately selected error scenarios. Its reported 16% concerns severe outcomes within that test suite, not the fraction of SSDs that fail in service. The publisher reports more than a thousand cases; that rounded aggregate is not recomputed here. Original report.

The author's 2023 thesis documents Linux 4.17, targeted block-layer injection and comparison with expected disk images. Its recovery categories distinguish a mountable filesystem with additional data loss, restoration of the pre-operation state, and recovery of the expected successful-operation state. These are different outcomes, even when a checker finishes. These injections do not test faults or mitigation inside drivers and firmware. Chapter 2, sections 2.4.3-2.4.6 and 2.7.

For an engineering review, record four separate results: whether the error was reported, whether the volume mounts, whether expected files remain, and whether the intended update survived. Keep software versions and injected faults beside those results. This is Hesela's reading checklist, not a current ranking of filesystems or a replication of the study.

A recovery policy has to survive its own repair

Detection, recovery and durable recovery metadata are separate obligations. The IRON taxonomy distinguishes checking a return code, validating structure and using redundancy; its recovery choices include retry, stopping, repair and remapping. A valid-looking structure need not contain the intended bytes. Prabhakaran et al., SOSP 2005, section 3.

Gunawi et al.'s I/O shepherding makes those policies explicit. Its CrookFS prototype intercepts requests and responses, including journal and cache I/O. The difficult case is a write that fails during checkpointing after journal commit: a replacement block needs persistent mapping metadata. Releasing the original transaction before that metadata commits can strand the copy after a crash. Chained transactions reverse that unsafe order. SOSP 2007, sections 3.2 and 4.1.

The prototype used Linux 2.6.12 and data journaling. Its reported low framework overhead concerns the basic propagation policy, not every protection policy. This is an architectural precedent, not a current ext4 feature or a modern performance estimate. Experimental scope, section 5 and Table 2.

The later FAST 2010 ZFS study exposes another boundary: verifying disk contents does not continuously protect cached memory. Its selected memory-corruption injections produced incorrect returned data or crashes despite strong disk-fault handling. The study concerns a historical implementation and controlled faults, not present-day OpenZFS incident rates. Zhang et al., sections 4-5.

Questions for an integrity review

Hesela's synthesis is a review checklist, not an implementation recipe:

  • Which bytes and reference values does the check cover?
  • Which paths execute it, including cache hits and recovery replay?
  • What usable copy or reconstruction inputs remain after detection?
  • When are repair mappings durable, and what survives another crash?

Source synthesis only. No CrookFS reproduction or new fault-injection measurement is claimed. See also identity and freshness checks and same-drive redundancy.

Detection, containment and repair

An integrity check can detect a bad block without containing the outage. The OSDI 2014 IceFS prototype illustrates the difference: cubes isolate metadata units, pathname access and transactions, allowing a faulty cube to be checked while healthy cubes remain online. It reuses existing fault detectors rather than making detection comprehensive. Mount-time failures and shared device resources remain outside that isolation. Design and limits, sections 3-5.

For an ext4 deployment, inspect the actual error policy. The documented options distinguish continuing after an error, remounting the filesystem read-only (errors=remount-ro), and panicking the machine. They are not per-directory repair policies. Changing the reaction does not establish that damaged data is correct or recoverable. Linux ext4 error options.

Which healthy workloads stop?

Hesela's review questions separate three acceptance criteria:

  • Detection: which injected fault is observed, and which reads or writes expose it?
  • Containment: which otherwise healthy workloads lose access or write permission, including during repair?
  • Repair: what validates the repaired state, and which independent recovery copy remains if repair fails?

Treat these as separate test outcomes, not one success flag. This is source synthesis, not a new fault injection experiment or a claim that current ext4 implements IceFS. Connect the review to failure domains and correlated availability failures.

Reading the numbers

Read checksum counters alongside I/O errors, scrub results and device logs. They observe different contracts. A filesystem mismatch establishes disagreement with its reference, not that a particular disk was the original source of the wrong bytes. Application-level validation may provide another independent check.

The historical incident is a counterexample to treating zero CKSUM as a clean bill of health: the pasted ZFS output records write errors while its checksum count is zero. Keep the different timestamps and the single-device scope visible. Neither that log nor SMART overall health is an estimate of detection sensitivity.

For monitoring, preserve software version, device identity, sampling time and reset history. A change in a counter is useful evidence, but needs a workload or observation denominator before it becomes a rate. Record repair success separately from detection and retain evidence before clearing counters.

The practical protection question is where the reference value came from and which bytes it covers. An internally consistent checksum cannot establish that an application supplied the intended content, requested version or object identity. See the checksum/identity analysis for executable counterexamples.

A mirror's stored extent, the comparison loop's range and the target file's location are separate boundaries. In the pinned NTFS-3G mount path, a 64-record mirror does not imply comparison of all 64 records. Hesela's whole-export comparisons test more bytes, yet still exclude the newly created file records.

Related: checksum identity and freshness, the SMART failure-signal note, SCSI sense and kernel log signatures, SMR drive failure signatures, silent-corruption evidence, scrub coverage and consistency boundaries and NVMe health log coverage.

Method

ZFS/Btrfs source review dated 14 October 2026; Windows coverage added 21 October 2026 from Microsoft documentation for Windows Server 2016-2025 and the Windows Server 2025 PowerShell reference. OpenZFS behavior is scoped to the v2.3 manuals, not an assertion about every release. Btrfs pages are rolling documentation accessed on that date. The historical drive case remains an attributed log excerpt, not an incident reproduced by Hesela. The research calculation uses published summary percentages; its executable source and result are linked below. No device faults were injected, no storage settings were changed, and no new device measurements were made. A separate 23 October 2026 supplement executes the installed Ubuntu NTFS-3G multisector routines on synthetic in-memory buffers: 36 read cases and five pre-write sequence transitions, with an independent byte oracle and two exact captures. This is not Windows execution, full MFT parsing or a crash experiment. A separate lifecycle supplement retains 24 controlled sequences and 48 native calls per capture, including deliberately incorrect caller sequences; two exact repeats on the same host are not independent environments. Storage Spaces layer boundaries were reviewed against Microsoft documentation on 23 October 2026; no Windows storage configuration or throughput experiment was executed. On 28 October 2026, a separate NTFS-3G 2022.10.3 unmounted-image study compared mirror coverage in four cluster geometries and four states per geometry, repeated twice on one host. A publication replay reproduced the normalized 16-state summary. The 32 retained observations are repeated configurations, not a reliability population; no Windows execution or repair trial is claimed. A 9 November 2026 source synthesis compares IRON's failure-policy taxonomy, the SOSP 2007 CrookFS prototype and the historical FAST 2010 memory-corruption study; no CrookFS reproduction is claimed. A further 9 November supplement enumerates four whole-block parity persistence states, repeated logged-redo closure and a stale-generation control; it is deterministic arithmetic, not CrookFS or Linux MD execution. A source review on 11 November 2026 adds IRON's fail-partial model, the ATC 2019 report's test-suite denominator and the author's 2023 thesis methodology; the thesis documents Linux 4.17, not a fresh 2023 kernel experiment.

Limits

Counter increments are not unique damaged blocks, failed drives or a probability of data loss. A zero count needs an observation window, a known reset history and evidence that the relevant path was exercised. The historical incident does not establish a manufacturer-wide cause or prevalence. Documentation specifies behavior, not fleet incidence. The paper's historical software, selected workloads and injected fault distribution do not estimate present-day OpenZFS reliability. Successful arithmetic reproduction validates a transformation, not its independence assumption.

When recovery crashes halfway through a parity update

An incremental parity retry that treats the current data and parity as the original operands can finish with the wrong answer. Retaining the original operands allows recovery to assign the same intended values after another crash. But an internally consistent stripe can still contain an old write.

CrookFS addresses repeated recovery with versioned old-value logging for non-idempotent policies. Its incremental parity calculation needs the original data and parity, even after either location has been overwritten. This is the historical prototype's mechanism, not a feature claim about current ext4. SOSP 2007, section 4.1.4.

Four possible states, not four equally likely events

In this constructed example, one data byte changes from D0 = 0x3c to D1 = 0x96. The XOR of unchanged data is U = 0xa5, so parity changes from P0 = 0x99 to P1 = 0x33. Data and parity writes each persist completely or not at all. The update is already selected for redo; there are no concurrent writers or unreadable blocks.

A naive retry reads the current pair and calculates P = Pcurrent XOR Dcurrent XOR D1, then writes D1 and that parity. Logged-old-value redo instead always calculates P1 = P0 XOR D0 XOR D1 from retained original operands. All pairs are data / parity in hexadecimal; the three recovery columns show the result after an uninterrupted recovery attempt.

Generated whole-block arithmetic: four persistence states. No crash-frequency or hardware measurements.
Original writes persistedBefore recoveryCurrent-operand redoLogged-old-value redoParity-only repair
Neither0x3c / 0x990x96 / 0x330x96 / 0x330x3c / 0x99
Data only0x96 / 0x990x96 / 0x990x96 / 0x330x96 / 0x33
Parity only0x3c / 0x330x96 / 0x990x96 / 0x330x3c / 0x99
Both0x96 / 0x330x96 / 0x330x96 / 0x330x96 / 0x33

Both partial states make current-operand redo finish at 0x96 / 0x99, which is inconsistent. Retrying again does not repair it: the two equal data operands cancel, leaving wrong parity unchanged. By contrast, logged redo assigns 0x96 / 0x33 every time. Any number of interrupted assignments stays within the four-state set; a final complete replay reaches that target. This proves safety only within the model, not eventual completion under endless crashes.

Parity repair can preserve the wrong version

The final column calculates P = Dcurrent XOR U without replacing data. All four results are consistent, but two retain D0. This illustrates the distinction behind Linux MD Partial Parity Log: it records untouched chunks' XOR before the update and does not guarantee preservation of in-flight data. The table is not an implementation of its degraded-array recovery. Pinned v6.12 documentation.

The separate RAID cache journal records data/parity and uses sequence identifiers and checksums during recovery. Its retained information and completion rules differ from PPL. Journal format and recovery. Do not infer the same protection merely because two mechanisms both use a log.

The stale-record control makes a second boundary explicit: replaying the old target after a later write restores consistent but stale data. The model rejects a mismatched active generation; it assumes that selection is trustworthy. Real systems still need correct journal ordering, record validation, retention and reuse. Idempotency alone neither selects the correct generation nor protects an intervening write.

Reproduction: assumptions and commands, model, all results, tests, source provenance. Ten test methods include 16,384 small-state cases and 65,536 byte-pair oracle checks. These counts describe test coverage, not independent failure observations. Torn writes, missing disks and damaged logs are outside this model; no filesystem or device was fault-injected.

What if the checker itself is interrupted?

Treat crash-consistent filesystem repair as a separate requirement from detecting corruption. A recovery run changes metadata too. Ask what remains usable if that run stops halfway, before trusting its eventual success message.

Gatla et al.'s FAST 2018 study identified missing persistence ordering between undo-log writes and repair writes. Its rfsck design separates durable logging from applying repairs. This historical result motivates checking the recovery protocol, not declaring a vulnerability in today's tools. Sections 4-5.

An undo file does not promise power-loss recovery

The upstream e2fsck manual pinned to e2fsprogs v1.47.3 says that -z saves overwritten blocks, but explicitly excludes recovery from a power or system crash using that undo file. It also warns against checking mounted filesystems; even the permitted read-only case does not produce valid check results on a changing mounted filesystem. Description and -z option.

The companion e2undo normally checks that the log's saved superblock matches the target. Its -n option is a dry run, while -f disables that safeguard. A forced replay is not evidence that the log belongs to the image. Options and safety check.

Evidence to retain before accepting a repair

  • Identify the exact filesystem image, checker version and repair log.
  • Separate a restartable process from recovery after lost volatile state.
  • Check filesystem consistency and expected file contents independently.

This checklist is Hesela's engineering synthesis. The experiments replayed prefixes of atomic-block writes on selected images, not arbitrary torn writes or every corrupt state. No checker fault-injection experiment was rerun here. Sections 3.2 and 7.

Sources

  1. 01OpenZFS documentation: zpool-status(8) (v2.3) · accessed 2026-10-14
  2. 02OpenZFS documentation: zpoolconcepts(7) (v2.3), Device Failure and Recovery · accessed 2026-10-14
  3. 03btrfs-progs documentation: btrfs-device(8), Device stats (latest) · accessed 2026-10-14
  4. 04btrfs-progs documentation: btrfs-scrub(8) (latest) · accessed 2026-10-14
  5. 05Zhang, Rajimwale, Arpaci-Dusseau, Arpaci-Dusseau: End-to-end Data Integrity for File Systems: A ZFS Case Study (USENIX FAST 2010) · accessed 2026-10-14
  6. 06OpenZFS GitHub issue 10214: WD WDx0EFAX drive unable to resilver (opened 2020-04-16, closed 2020-12-22) · accessed 2026-10-11
  7. 07OpenZFS v2.3 zfs(4): zfs_vdev_direct_write_verify · accessed 2026-10-14
  8. 08Microsoft Learn: ReFS overview, resiliency and Storage Spaces integration · accessed 2026-10-21
  9. 09Microsoft Learn: ReFS integrity streams, inheritance and scrub coverage · accessed 2026-10-21
  10. 10Microsoft Learn: Get-FileIntegrity (Windows Server 2025 Storage module) · accessed 2026-10-21
  11. 11Microsoft Learn: Set-FileIntegrity, Enable and Enforce parameters · accessed 2026-10-21
  12. 12Microsoft Learn: format, ReFS /I default on redundant storage · accessed 2026-10-21
  13. 13Microsoft Learn: NTFS overview, recovery log and access control · accessed 2026-10-21
  14. 14Microsoft Learn: chkdsk, scan and repair scope · accessed 2026-10-21
  15. 15Microsoft Learn: ReFS block-cloning integrity compatibility and shared allocation · accessed 2026-10-21
  16. 16Microsoft Learn: FSCTL_GET_INTEGRITY_INFORMATION_BUFFER fields · accessed 2026-10-21
  17. 17Microsoft: MULTI_SECTOR_HEADER, NTFS 3.0/3.1, 512-byte sequence stride · accessed 2026-10-23
  18. 18NTFS-3G mst.c, commit 78414d93613532fd82f3a82aba5d4a1c32898781: validation, restoration and counter wrap · accessed 2026-10-23
  19. 19Hesela: native NTFS-3G update-sequence fixtures, 36 read cases and five write transitions (2026-10-23) · accessed 2026-10-23
  20. 20Bairavasundaram et al.: An Analysis of Data Corruption in the Storage Stack, FAST 2008, sections 2.2-3.2 · accessed 2026-10-23
  21. 21Hesela: NTFS-3G buffer lifecycle, 24 sequences and 48 native calls per capture · accessed 2026-10-23
  22. 22Gunawi et al.: EIO: Error Handling is Occasionally Correct, FAST 2008, methodology and limitations · accessed 2026-10-23
  23. 23Microsoft Learn: Storage Spaces pool, virtual-disk and resiliency model · accessed 2026-10-23
  24. 24Microsoft Learn: Storage Spaces Direct architecture · accessed 2026-10-23
  25. 25Microsoft Learn: Storage pool cache at the drive layer · accessed 2026-10-23
  26. 26Microsoft Learn: Mirror-accelerated parity rotation and I/O behavior · accessed 2026-10-23
  27. 27Microsoft Learn: Standalone Storage Bus Cache prerequisites and ReFS volumes · accessed 2026-10-23
  28. 28Microsoft Learn: Create volumes: mirror-accelerated parity requires ReFS · accessed 2026-10-23
  29. 29Krioukov et al.: Parity Lost and Parity Regained, FAST 2008, model and error assumptions · accessed 2026-10-23
  30. 30Microsoft MS-FSCC 5.3: NTFS Reserved File Names, MFT mirror row · accessed 2026-10-28
  31. 31Microsoft: NTFS v3 Master File Table records and attributes · accessed 2026-10-28
  32. 32NTFS-3G 2022.10.3: mirror capacity from boot geometry, pinned commit · accessed 2026-10-28
  33. 33NTFS-3G 2022.10.3: bounded mirror comparison and attributed Windows comment · accessed 2026-10-28
  34. 34Hesela: NTFS mirror coverage, eight retained before/after contrasts on one host · accessed 2026-10-28
  35. 35NTFS-3G 2022.10.3: FILE_first_user boundary, pinned layout definition · accessed 2026-10-28
  36. 36Gunawi et al. Improving File System Reliability with I/O Shepherding. SOSP 2007, sections 3-5. · accessed 2026-11-09
  37. 37Prabhakaran et al. IRON File Systems. SOSP 2005, sections 2-3: fail-partial faults and failure policies. · accessed 2026-11-09
  38. 38Linux v6.12: Partial Parity Log, retained state and recovery limits · accessed 2026-11-09
  39. 39Linux v6.12: RAID 4/5/6 cache, journal format and recovery · accessed 2026-11-09
  40. 40Jaffer et al. Evaluating File System Reliability on Solid State Drives. USENIX ATC 2019, pp. 783-798. · accessed 2026-11-11
  41. 41Jaffer. Improving Reliability and Performance of Storage Stacks on next generation Solid State Drives. PhD thesis, 2023, chapter 2. · accessed 2026-11-11
  42. 42Gatla et al. Towards Robust File System Checkers. FAST 2018, pp. 105-122; sections 3-7. · accessed 2026-11-12
  43. 43e2fsprogs v1.47.3: e2fsck(8), mounted filesystems and -z undo_file. · accessed 2026-11-12
  44. 44e2fsprogs v1.47.3: e2undo(8), matching the log to the filesystem and dry-run mode. · accessed 2026-11-12
  45. 45Lanyue Lu et al. Physical Disentanglement in a Container-Based File System. OSDI 2014, pp. 81-96, sections 3.2, 4.1-4.3 and 5.2-5.5. · accessed 2026-11-13
  46. 46Linux kernel documentation: ext4 General Information, errors mount options. · accessed 2026-11-13

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. Filesystem integrity: ZFS, Btrfs, ReFS and NTFS. Hesela. 2026-11-13. https://hesela.com/analyses/filesystem-checksum-error-detection/