diff options
author | Don Brady <[email protected]> | 2017-08-14 18:17:15 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-08-14 15:17:15 -0700 |
commit | d977122da92e870a6a8990437ced845a04c39cfc (patch) | |
tree | 7b4b35bcba2f4a459a1004b80adea63ff970bf4f /include | |
parent | 42a76fc8d757ab82fc1ce8e5e1f2079e07a5b9d4 (diff) |
Add corruption failure option to zinject(8)
Added a 'corrupt' error option that will flip a bit in the data
after a read operation. This is useful for generating checksum
errors at the device layer (in a mirror config for example). It
is also used to validate the diagnosis of checksum errors from
the zfs diagnosis engine.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Don Brady <[email protected]>
Closes #6345
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/zio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/zio.h b/include/sys/zio.h index f7baa270b..30c4ee3ce 100644 --- a/include/sys/zio.h +++ b/include/sys/zio.h @@ -619,6 +619,8 @@ extern int zio_clear_fault(int id); extern void zio_handle_panic_injection(spa_t *spa, char *tag, uint64_t type); extern int zio_handle_fault_injection(zio_t *zio, int error); extern int zio_handle_device_injection(vdev_t *vd, zio_t *zio, int error); +extern int zio_handle_device_injections(vdev_t *vd, zio_t *zio, int err1, + int err2); extern int zio_handle_label_injection(zio_t *zio, int error); extern void zio_handle_ignored_writes(zio_t *zio); extern hrtime_t zio_handle_io_delay(zio_t *zio); |