Skip to content

Research notes / Storage integrity

HDD write verification: completion, persistence and comparison

Published 16 October 2026 / Updated / Source review, client tests and constructed accounting example

A completed write, a persistence guarantee and a comparison against expected bytes are different evidence. Even a command named VERIFY does not necessarily compare against the data you intended.

On this page9 sections

Start with the property being checked

Linux distinguishes REQ_PREFLUSH, which makes earlier completed writes non-volatile before the dependent I/O begins, from REQ_FUA, which delays completion of that write until its data is non-volatile. These are persistence semantics, not requests to compare the stored bytes with an independent reference. [4]

Hesela's evidence checklist, not an ordering of safety levels. Each row needs its own successful completion and scope.

Questions answered by different storage checks
EvidenceQuestion addressedStill not established
Write completionDid this layer report success?Which lower-layer obligations were included?
Flush / write FUA [4]Was the required data made non-volatile?A separate read-back comparison.
Medium verification [2]Did the device's selected checks pass?Agreement with host-supplied expected bytes.
Byte comparison [2]Did the checked data match the supplied reference?Whether that reference is correct and current.

Consider an intentionally constructed example: the expected new payload is B, but the old payload A remains fully readable with valid error-correction information. Readability alone cannot decide whether the update happened. Comparing against an independently retained B can expose the mismatch. This is a logical example, not an observed drive failure.

IRAW: move verification, not the completion boundary

Riska and Riedel's 2008 IRAW proposal retains completed-write data in cache and compares it with disk contents during idle periods. Cache eviction and non-preemptible seeks constrain coverage and foreground latency. Their study uses five enterprise traces and DiskSim 2.0; it is not a deployed-fleet reliability measurement. Power-failure consistency is outside its scope. [1, sections 2-5]

The methodological trap is throughput: arrivals are fixed in this open-loop simulation. Small IOPS differences therefore do not establish unchanged saturation capacity. Verification coverage is a fraction of writes checked, not a fraction of future failures prevented. [1, section 5.2]

Idle time is not reserved exclusively for verification. The proposal shares it with other drive services, including background media scans, and warns against consuming all of it. High idleness alone is therefore not a dedicated verification budget. [1, section 3]

Our inference: a coverage result needs a denominator, delay distribution and eviction policy before it can inform an integrity objective. A check performed later must not be silently credited to the earlier acknowledgement. We did not rerun the simulator or establish implementation in any current model.

Correct bytes can still belong to the wrong location

The IRAW authors explicitly exclude misdirected writes from the protection offered by their disk-level comparison. Do not turn their verification fraction into coverage of wrong-address or wrong-drive writes. [1, section 2]

The FAST 2008 corruption study supplies a complementary mechanism: filesystem block identity is checked against the file being read. A displaced block can retain a valid checksum; identity validation addresses a different question. The studied RAID scrub cannot perform that filesystem-level identity check. These are properties of the described storage stack, not promises about every scrub implementation. [6, sections 2.2.1-2.3]

There is also an observation limit: the FAST study's logs could not establish that every disk had been scrubbed periodically when no errors were reported. No corruption report is not a completion receipt. This logging limitation is distinct from the scrub's inability to check filesystem identity. [6, section 3.2]

Our inference: record which layer independently establishes the expected address or object identity. A byte-match result alone does not document that check. See identity and lost-write detection for the separate freshness problem.

Knowing the next idle interval changes the experiment

The paper's trace analysis assumes advance knowledge of idle duration, a fixed 5 ms per verification and first-come-first-served selection. Avoiding foreground interference is built into that model. The DiskSim experiment instead computes completion times; future idle duration is unknown and a new request can wait behind verification. These are different experiments, not two measurements of one implementation. [1, sections 5-5.2]

One easily missed unit: IRAWAge counts idle intervals, not milliseconds. The initial trace analysis limits retention this way even with unlimited cache. An interval-count limit cannot be read as a fixed wall-clock verification deadline. [1, section 5.1]

90% of requests can cover only 3.4% of bytes

The paper defines its validation rate over WRITE requests. It is not a byte-weighted fraction or a probability of preventing corruption. [1, section 5]

Consider ten invented, completed writes. Nine carry 4 KiB each and one carries 1 MiB. If only the nine small writes are checked, request coverage is 9/10 = 90%. Payload-byte coverage is 36 KiB / 1,060 KiB, about 3.4%. Checking only the large write reverses the interpretation: 10% of requests, about 96.6% of payload bytes.

Constructed accounting cases, not IRAW results or drive measurements. Small = 4 KiB; large = 1 MiB; 1 KiB = 1,024 bytes. Percentages are rounded to one decimal place.

Whole-request verification with two denominators
Checked / uncheckedRequestsPayload bytes
Nine small writes checked; one small write unchecked9 / 10
90.0%
36 / 40 KiB
90.0%
Nine small writes checked; one large write unchecked9 / 10
90.0%
36 / 1060 KiB
3.4%
One large write checked; nine small writes unchecked1 / 10
10.0%
1024 / 1060 KiB
96.6%

Each input is either fully checked or unchecked. Partial checks need a different accounting rule. Payload bytes count traffic, not unique stored data: repeated writes to the same address would be counted repeatedly. Neither denominator weights the importance of a metadata write or the cost of losing it.

The example contains no timing information. The same eventual coverage can result from immediate checks or much later checks. A useful operational report therefore also records verification delay, pending work and writes discarded without verification. Do not silently remove unchecked writes from the denominator or treat an unknown result as a successful check.

Reproduce the arithmetic with the JavaScript module and inspect the JSON inputs, exact totals and source hash. The module rejects invalid sizes and missing boolean classifications; an empty workload returns null fractions. This is an accounting example, not a scheduling simulation or a reproduction of the paper.

SCSI: VERIFY is not always a byte comparison

Seagate's February 2006 command reference distinguishes BYTCHK=0 medium verification without data comparison from BYTCHK=1 comparison with supplied data. WRITE AND VERIFY writes first, then verifies; it is not a harmless scan of existing contents. Verification criteria also depend on mode pages or vendor behavior. [2, sections 3.49 and 3.58]

Do not apply a historical one-bit field description to every later command revision. The sg3_utils v1.48 manual records the expansion to two bits in SBC-3 revision 34. Its --ndo option supplies comparison bytes; a mismatch returns exit status 14. DPO lowers cache-retention priority: it is not a universal cache-bypass switch. [3]

Nor should the name VERIFY alone be used as proof of a fresh physical read. Gilbert's SG driver discussion explicitly considers prefetching data into the target drive's cache before verification. Check the exact command, cache behavior and implementation when physical-media access is the question. [5]

No commands here were issued to a storage device. Device support, bridges, logical-block size and protection-information settings must be verified before translating these distinctions into a test procedure.

Did the intended verification run?

A successful utility exit can precede any device check. In controlled tests, sg_verify returned exit 0 after receiving only three of 1,536 requested reference bytes. Its diagnostic reported an input failure; no device-open or VERIFY call occurred. Without interception, short input still returned 0 against a nonexistent path, while complete input reached open and returned 52. [9]

The three tested builds were the installed Ubuntu sg3-utils 1.46-3ubuntu4.1 client and unmodified v1.48 client source compiled at O0 and O2 with v1.48 headers and the installed 1.46 helper library. This is not a full v1.48 distribution or three independent implementations. The input loop converts errno on EOF, which need not set it; zero can map to success. [8] [9]

Selected client-boundary controls, repeated across all three builds. Capture calls received injected results, not device responses. The complete protocol contains 12 scenarios per build and six unmocked input controls. [9]

Reference input and submitted call boundaries
ConditionObserved resultMeaning
3 of 1,536 input bytesExit 0; no open or VERIFY callSuccess status did not establish input completeness.
count=3, bpc=1, ndo=1536Three one-block calls; same 1,536 bytes each timeThe reference did not advance with the LBA.
count=3, bpc=3, ndo=1536One three-block callThe requested range and reference fit one captured call.

The split-call result contradicts the pinned manual's single-command description when --ndo is supplied. The client prints that bpc is ignored, but the loop still uses it. These captures do not establish how a target would handle an oversized reference. [3] [8]

The later command reference distinguishes BYTCHK=1, with per-block reference data, from BYTCHK=3, which repeats one block across the range. Protection fields and unmapped-block rules also matter. [7, section 3.59] In the tested clients, legacy --bytchk is a byte-count option; --ebytchk selects the mode. Accepting reserved mode 2 in a parser does not establish device support. [3]

The practical inference is to record complete reference acquisition and submitted-range coverage alongside status and diagnostics. IRAW's cache-retained comparison [1] and this host-side input failure concern different boundaries: neither replaces evidence for the other.

Read the method and limitations, inspect the raw observations or download the reproducibility packet. No physical medium, CDB transport, actual target comparison or performance was tested. The deliberately inconsistent fixtures belong only in the fake-device harness, never on a production disk.

Make a verification report auditable

Our proposed reporting fields separate observation from inference:

  • Device model, firmware, transport and software version.
  • Exact operation, comparison mode, block range and excluded regions.
  • Origin and version of the expected data, if a comparison uses it.
  • Reference byte count and hash, submitted ranges, status and diagnostics.
  • Start, completion, status and errors, not merely a scan request.
  • Cache and persistence assumptions, plus intervening writes or repairs.

A matching old reference can validate old data. A reference corrupted before comparison can validate the wrong payload. Verification therefore complements the separate questions of identity, freshness and recovery; it does not replace them. See checksums and lost writes, scrub scope and flush and FUA boundaries.

Corpus definitions: read-after-write verification, IRAW and SCSI VERIFY.

Primary sources and limits

  1. Alma Riska and Erik Riedel (Seagate Research). Idle Read After Write - IRAW. USENIX ATC 2008, pp. 43-56; sections 2-5.3.
  2. Seagate. SCSI Commands Reference Manual, 100293068 Rev. A, February 2006; sections 3.49 and 3.58, printed pp. 175-176 and 198.
  3. sg3_utils v1.48: sg_verify manual, BYTCHK, DPO and exit status (manual header retains 1.45).
  4. Linux kernel documentation: explicit volatile write back cache control.
  5. Douglas Gilbert. Linux SG driver version 4.0: request-sharing verification and prefetch discussion.
  6. Bairavasundaram et al. An Analysis of Data Corruption in the Storage Stack. FAST 2008, sections 2.2.1-2.3 and 3.2.
  7. Seagate. SCSI Commands Reference Manual, 100293068 Rev. L, November 2020; section 3.59, printed pp. 248-250.
  8. sg3_utils v1.48 sg_verify.c: reference input loop and VERIFY loop, pinned commit c2710e0.
  9. Hesela. SCSI VERIFY reference boundaries: native client captures, unmocked controls, pinned sources and replay.

Client findings and IRAW methodology rechecked 29 November 2026. IRAW sections 2-3 and FAST 2008 sections 2.2-2.3 and 3.2 rechecked 3 November 2026; other source dates are retained. The paper and command manual are historical, manufacturer-affiliated sources. Software documentation is version-scoped where possible. This review provides no hardware benchmark, failure-rate estimate or certification.

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. HDD write verification: completion, persistence and comparison. Hesela. 2026-11-29. https://hesela.com/analyses/hdd-write-verification-iraw/