diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2018-01-09 11:37:59 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-01-23 04:07:41 +0000 |
commit | a35f158f1cbe142a1f65bfc5f3c7584ec3e7bab0 (patch) | |
tree | 94c72eb06d6f7b402771fddefe29f73338d51f93 /xlators/debug/error-gen | |
parent | 7c9b62cfff34d1ac4c8fa0822b18e51c15e6db81 (diff) |
features/error-gen: update volume options for GD2
Updates #302
Change-Id: I8d04bb4f46b1e53a8d176a75da2382fdbf0cfc6f
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/debug/error-gen')
-rw-r--r-- | xlators/debug/error-gen/src/error-gen.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/xlators/debug/error-gen/src/error-gen.c b/xlators/debug/error-gen/src/error-gen.c index 00008968f6e..6724fcf4c22 100644 --- a/xlators/debug/error-gen/src/error-gen.c +++ b/xlators/debug/error-gen/src/error-gen.c @@ -1686,17 +1686,27 @@ struct volume_options options[] = { "ENODEV","EXDEV","EMFILE","ENFILE","ENOSYS","EINTR", "EFBIG","EAGAIN","GF_ERROR_SHORT_WRITE"}, .type = GF_OPTION_TYPE_STR, + .op_version = {3}, + .tags = {"error-gen"}, + .flags = OPT_FLAG_SETTABLE, + }, { .key = {"random-failure"}, .type = GF_OPTION_TYPE_BOOL, .default_value = "off", + .op_version = {3}, + .tags = {"error-gen"}, + .flags = OPT_FLAG_SETTABLE, }, - { .key = {"enable"}, + { .key = {"enable", "error-fops"}, .type = GF_OPTION_TYPE_STR, .description = "Accepts a string which takes ',' separated fop " "strings to denote which fops are enabled for error", + .op_version = {3}, + .tags = {"error-gen"}, + .flags = OPT_FLAG_SETTABLE, }, { .key = {NULL} } |