writeback-error · shipping

Writeback error

A writeback error is a failure encountered while transferring modified cached data to its backing storage.

Related Observatory article: Read on hesela.com

Linux's generic tracking can report a failure to open file descriptions for the affected file even when their own writes did not fail. Duplicated descriptors share an open-file-description error cursor, so observing through one alias can consume the shared pending report. An error report neither identifies every damaged byte nor repairs data. Preserve the first failure when assessing transaction durability. syncfs broadens reporting to the filesystem selected by the descriptor; its error need not concern that descriptor's file. [5]

Distinguish lost data from a failure in the error-observation path. The version-pinned errseq_t entry documents a controlled concurrent schedule that can suppress a later report without counter wrap. That helper replay does not establish which file bytes persisted or how often a deployed system encounters the schedule. [7]

Mocking a syscall error tests the response to that return value, not the filesystem's handling of a failed storage write. Rebello et al. recommend block-level fault injection or CuttleFS-style emulation to exercise that recovery boundary; their historical experiments do not measure the errseq schedule. [6]

Relations

related
fsync, errseq_t, Write-back cache, fdatasync, sync_file_range, Open file description, syncfs

Citations

  1. Linux man-pages 6.19: sync(2), filesystem scope and Linux 5.8 error reporting (accessed 2026-10-15)
  2. Rebello et al., Can Applications Recover from fsync Failures? USENIX ATC 2020, section 5, observation 9 (accessed 2026-10-26)
  3. Linux v6.12 lib/errseq.c: immutable source for the controlled helper replay (accessed 2026-10-25)

Further reading

  1. Linux VFS: Handling errors during writeback (accessed 2026-10-13)
  2. Hesela: Why retrying a failed fsync does not prove durability (accessed 2026-10-10)
  3. Linux man-pages 6.19: dup(2), shared open file descriptions (accessed 2026-10-13)
  4. Linux v6.12: file_check_and_advance_wb_err in mm/filemap.c (accessed 2026-10-13)

JSON: /data/terms/writeback-error.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Writeback error. Hesela. 2026-10-26. https://hesela.dev/terms/writeback-error/