Inject zinject a percentage amount of dev errs
Port of OpenZFS change:
commit 0241e491a08ffa471a08ceaa0b0943999d775cbe Author: Don Brady <firstname.lastname@example.org> Date: Fri Jun 16 18:21:11 2017 -0600 Inject zinject(8) a percentage amount of dev errs In the original form of device error injection, it was an all or nothing situation. To help simulate intermittent error conditions, you can now specify a real number percentage value. This is also very useful for our ZFS fault diagnosis testing and for injecting intermittent errors during load testing. Reviewed-by: Brian Behlendorf <email@example.com> Signed-off-by: Don Brady <firstname.lastname@example.org> Closes #6227
Some zfs-tests in OpenZFS make use of this, so it'd be helpful to have this as well to assist in porting future OpenZFS changes.
Updated by Jason King over 1 year ago
I also tested this change in conjunction with #12636 as that test makes specific use of the functionality in this change (and was the reason for porting this change). The new test introduced with #12636 now passes (prior to this, that new test would fail because zinject was exiting with an error due to incorrect usage).
Updated by Electric Monk over 1 year ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit b853d39ade4a504f3447f996dbf5dd985f0236bc Author: Don Brady <email@example.com> Date: 2020-05-05T21:48:28.000Z 12684 Inject zinject a percentage amount of dev errs Reviewed by: Brian Behlendorf <firstname.lastname@example.org> Portions contributed by: Jason King <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>