diff options
author | Don Brady <[email protected]> | 2017-06-16 18:21:11 -0600 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-06-16 17:21:11 -0700 |
commit | 0241e491a08ffa471a08ceaa0b0943999d775cbe (patch) | |
tree | 17f07ce2cf37c4f19155dba12851c8eab519c8a1 /include | |
parent | 05a5357a6c63b8c83062c1b295ee98d14f8e85aa (diff) |
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 protected]>
Signed-off-by: Don Brady <[email protected]>
Closes #6227
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/zfs_ioctl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/zfs_ioctl.h b/include/sys/zfs_ioctl.h index 495cdea3a..c68b8770b 100644 --- a/include/sys/zfs_ioctl.h +++ b/include/sys/zfs_ioctl.h @@ -22,6 +22,7 @@ * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2012, 2015 by Delphix. All rights reserved. * Copyright 2016 RackTop Systems. + * Copyright (c) 2017, Intel Corporation. */ #ifndef _SYS_ZFS_IOCTL_H @@ -338,6 +339,10 @@ typedef struct zinject_record { #define ZEVENT_SEEK_START 0 #define ZEVENT_SEEK_END UINT64_MAX +/* scaled frequency ranges */ +#define ZI_PERCENTAGE_MIN 4294UL +#define ZI_PERCENTAGE_MAX UINT32_MAX + typedef enum zinject_type { ZINJECT_UNINITIALIZED, ZINJECT_DATA_FAULT, |