Inject zinject a percentage amount of dev errs
zfs - Zettabyte File System
Port of OpenZFS change:
commit 0241e491a08ffa471a08ceaa0b0943999d775cbe Author: Don Brady <email@example.com> 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 <firstname.lastname@example.org> Signed-off-by: Don Brady <email@example.com> 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.