﻿# fio verification needs the write history it is checking

A verify-only pass must match the prior workload and interrupted-write state. Distinguish invalid expectations, in-flight work and a real data mismatch before blaming media.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/fio-verification-state-write-history/
Language: en

## A mismatch can come from the expected history

A storage qualification run is interrupted, then a verify-only pass checks the entire configured file range. Some locations were never successfully written by the original run. A mismatch at those locations does not automatically establish that the medium corrupted data that had been durably stored.

The [fio HOWTO](https://raw.githubusercontent.com/axboe/fio/master/HOWTO.rst) defines verify-only as checking data against a previous invocation of the writing workload. The prior history and coverage boundary are part of the test artifact, not optional context that can be reconstructed from file size alone.

## Preserve the generation of expected data

Retain the exact job, tool version, target identity, block sizes, offsets, randomization and verification method. fio verification headers include workload metadata, so a changed expectation can disagree even when the bytes on storage have not changed.

Keep each run's data and state files together. Reusing a job name or a target pathname does not prove that a saved state belongs to the current artifact. Prevent unrelated writers from modifying the test range, and use disposable data rather than a live model cache for a write-verification exercise.

## Bound interrupted-write coverage

The HOWTO describes saving write state and loading it for verification after a trigger. Without the appropriate state, a verification pass can cover the job's configured range instead of only the known prior write boundary.

The inspected [verification implementation](https://raw.githubusercontent.com/axboe/fio/master/verify.c) validates state version and checksum before assigning it, then uses recorded issue and in-flight information to constrain checking. This describes the inspected source behavior, not a claim that an arbitrary installed binary has identical implementation.

## Separate failed work and observed corruption

Retain original write errors, outstanding requests and synchronization outcomes. A location whose write failed or remained in flight has a different expectation from one known to have completed under the intended persistence contract. Do not turn an uncertain prior state into a confidently specified expected pattern.

Likewise, multiple overlapping writers can invalidate simple sequence expectations. Changing verification settings merely to make an error disappear can remove a useful check without explaining the original result. Preserve the first failure and review the documented option semantics.

## Acceptance needs stated coverage

Accept a verification result only with its target, expected history, checked range and exclusions. Report unverified blocks separately from verified matches. The HOWTO also notes that some verify-only output can contain phantom write accounting even though no writes are issued, so counters must be interpreted under that mode.

[Checksum scope](/journal/guide-storage-object-checksum/) explains why a matching subset does not certify an entire artifact. [Completed-byte accounting](/journal/guide-storage-copy-file-range-short/) explains the related distinction between configured work and actual progress.

## Use the result for the right diagnosis

A reproducible mismatch under a valid expectation is strong evidence of a data-path problem requiring investigation. It still does not uniquely identify failed flash, a controller, host memory or software as the cause. Preserve the raw error, history and coverage rather than compressing every verify failure into a hardware verdict. That makes later isolation meaningful and prevents an incomplete interrupted write from masquerading as a media-reliability measurement.
