summaryrefslogtreecommitdiffstats
path: root/xlators/debug/error-gen/src/error-gen.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/debug/error-gen/src/error-gen.h')
-rw-r--r--xlators/debug/error-gen/src/error-gen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/debug/error-gen/src/error-gen.h b/xlators/debug/error-gen/src/error-gen.h
index 6ef6b232e6a..2cd95de335a 100644
--- a/xlators/debug/error-gen/src/error-gen.h
+++ b/xlators/debug/error-gen/src/error-gen.h
@@ -29,6 +29,12 @@ enum GF_PSEUDO_ERRORS {
typedef struct {
int enable[GF_FOP_MAXVALUE];
int op_count;
+ /*
+ * This is only an iteration number in the random-failure case. For
+ * the normal controlled-probability case, it's actually a numerator
+ * for the failure probability (see FAILURE_GRANULARITY declaration).
+ * It's just not worth blowing up the diff by changing it.
+ */
int failure_iter_no;
char *error_no;
int error_no_int;