features/error-gen: update volume options for GD2

Updates #302

Change-Id: I8d04bb4f46b1e53a8d176a75da2382fdbf0cfc6f
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
This commit is contained in:
Atin Mukherjee 2018-01-09 11:37:59 +05:30
parent 7c9b62cfff
commit a35f158f1c

View File

@ -1686,17 +1686,27 @@ struct volume_options options[] = {
"ENODEV","EXDEV","EMFILE","ENFILE","ENOSYS","EINTR", "ENODEV","EXDEV","EMFILE","ENFILE","ENOSYS","EINTR",
"EFBIG","EAGAIN","GF_ERROR_SHORT_WRITE"}, "EFBIG","EAGAIN","GF_ERROR_SHORT_WRITE"},
.type = GF_OPTION_TYPE_STR, .type = GF_OPTION_TYPE_STR,
.op_version = {3},
.tags = {"error-gen"},
.flags = OPT_FLAG_SETTABLE,
}, },
{ .key = {"random-failure"}, { .key = {"random-failure"},
.type = GF_OPTION_TYPE_BOOL, .type = GF_OPTION_TYPE_BOOL,
.default_value = "off", .default_value = "off",
.op_version = {3},
.tags = {"error-gen"},
.flags = OPT_FLAG_SETTABLE,
}, },
{ .key = {"enable"}, { .key = {"enable", "error-fops"},
.type = GF_OPTION_TYPE_STR, .type = GF_OPTION_TYPE_STR,
.description = "Accepts a string which takes ',' separated fop " .description = "Accepts a string which takes ',' separated fop "
"strings to denote which fops are enabled for error", "strings to denote which fops are enabled for error",
.op_version = {3},
.tags = {"error-gen"},
.flags = OPT_FLAG_SETTABLE,
}, },
{ .key = {NULL} } { .key = {NULL} }