From a35f158f1cbe142a1f65bfc5f3c7584ec3e7bab0 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Tue, 9 Jan 2018 11:37:59 +0530 Subject: features/error-gen: update volume options for GD2 Updates #302 Change-Id: I8d04bb4f46b1e53a8d176a75da2382fdbf0cfc6f Signed-off-by: Atin Mukherjee --- xlators/debug/error-gen/src/error-gen.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'xlators/debug/error-gen/src/error-gen.c') 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} } -- cgit