Expand description
Fault injection at the store’s durability points, for the crash and disk-fault tests.
Every write-back, sync, rename, scrub and unlink of the commit and purge paths calls
hit with a stable name. Without the failpoints feature hit is an inlined Ok(()).
With it, the n-th hit (counted across all names, from 1) can be made to
exit: end the process at once withEXIT_CODEand no unwinding, which is what a killed process looks like to the files (the page cache survives, nothing is flushed);enospcoreio: return that I/O error, once (:once, the default) or from then on (:sticky, a disk that stays full or broken).
A child process arms itself from WARM_FAILPOINT=<kind>[:sticky]@<n>;
WARM_FAILPOINT_TRACE=<path> appends each hit’s name to a file. A test in the same process
uses arm, disarm and hits.
Enums§
- Fault
- What the armed hit does.
Constants§
- EXIT_
CODE - Exit status of a process ended by an
exitfailpoint.