Skip to content

Commit

Permalink
Clarify zinject(8) explanation of -e
Browse files Browse the repository at this point in the history
Error injection of EIO or ENXIO simply sets the zio's io_error value,
rather than preventing the read or write from occurring.  This is
important information as it affects how the probes must be used.

Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
  • Loading branch information
ofaaland committed Feb 14, 2018
1 parent 9c5167d commit b19ccaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions man/man8/zinject.8
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ Specify
.BR "dtl" " for an ECHILD error,"
.BR "io" " for an EIO error where reopening the device will succeed, or"
.BR "nxio" " for an ENXIO error where reopening the device will fail."
For EIO and ENXIO, the "failed" reads or writes still occur. The probe simply
sets the value of zio->io_error so the consumer of the zio believes the read or
write failed.
.TP
.BI "\-f" " frequency"
Only inject errors a fraction of the time. Expressed as a real number
Expand Down

0 comments on commit b19ccaa

Please sign in to comment.