aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zio.c
diff options
context:
space:
mode:
authorDon Brady <[email protected]>2017-08-14 18:17:15 -0400
committerBrian Behlendorf <[email protected]>2017-08-14 15:17:15 -0700
commitd977122da92e870a6a8990437ced845a04c39cfc (patch)
tree7b4b35bcba2f4a459a1004b80adea63ff970bf4f /module/zfs/zio.c
parent42a76fc8d757ab82fc1ce8e5e1f2079e07a5b9d4 (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 'module/zfs/zio.c')
-rw-r--r--module/zfs/zio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c
index 959b9a5a8..057a1405f 100644
--- a/module/zfs/zio.c
+++ b/module/zfs/zio.c
@@ -3472,8 +3472,8 @@ zio_vdev_io_done(zio_t *zio)
vdev_cache_write(zio);
if (zio_injection_enabled && zio->io_error == 0)
- zio->io_error = zio_handle_device_injection(vd,
- zio, EIO);
+ zio->io_error = zio_handle_device_injections(vd, zio,
+ EIO, EILSEQ);
if (zio_injection_enabled && zio->io_error == 0)
zio->io_error = zio_handle_label_injection(zio, EIO);