Writeback error
A writeback error is a failure encountered while transferring modified cached data to its backing storage.
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
Citations
- Linux man-pages 6.19: sync(2), filesystem scope and Linux 5.8 error reporting
- Rebello et al., Can Applications Recover from fsync Failures? USENIX ATC 2020, section 5, observation 9
- Linux v6.12 lib/errseq.c: immutable source for the controlled helper replay