summaryrefslogtreecommitdiffstats
path: root/xlators/features/bit-rot
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2018-01-08 11:22:58 +0530
committerKotresh HR <khiremat@redhat.com>2018-01-17 02:34:55 +0000
commit6f877d04d6b1b9e0e10904c1a9da9e671bccb290 (patch)
treed6cfaa4a4c51aa29d635474a90d8ff06f0132ffd /xlators/features/bit-rot
parent1b2a3a417f62a7b2aa15918d7be449c243d96b94 (diff)
features/bit-rot: fix volume options for GD2
Updates #302 Change-Id: I8809f269b93253bce049fdbf28a7f44e85a2b9e7 Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/features/bit-rot')
-rw-r--r--xlators/features/bit-rot/src/bitd/bit-rot.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/xlators/features/bit-rot/src/bitd/bit-rot.c b/xlators/features/bit-rot/src/bitd/bit-rot.c
index 04ccc01..c1e6196 100644
--- a/xlators/features/bit-rot/src/bitd/bit-rot.c
+++ b/xlators/features/bit-rot/src/bitd/bit-rot.c
@@ -2148,6 +2148,8 @@ struct volume_options options[] = {
{ .key = {"expiry-time"},
.type = GF_OPTION_TYPE_INT,
.default_value = SIGNING_TIMEOUT,
+ .op_version = {GD_OP_VERSION_3_7_0},
+ .flags = OPT_FLAG_SETTABLE,
.description = "Waiting time for an object on which it waits "
"before it is signed",
},
@@ -2156,13 +2158,17 @@ struct volume_options options[] = {
.description = "Total number of bricks for the current node for "
"all volumes in the trusted storage pool.",
},
- { .key = {"scrubber"},
+ { .key = {"scrubber", "scrub"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "false",
+ .op_version = {GD_OP_VERSION_3_7_0},
+ .flags = OPT_FLAG_SETTABLE | OPT_FLAG_FORCE,
.description = "option to run as a scrubber",
},
{ .key = {"scrub-throttle"},
.type = GF_OPTION_TYPE_STR,
+ .op_version = {GD_OP_VERSION_3_7_0},
+ .flags = OPT_FLAG_SETTABLE,
.description = "Scrub-throttle value is a measure of how fast "
"or slow the scrubber scrubs the filesystem for "
"volume <VOLNAME>",
@@ -2170,11 +2176,15 @@ struct volume_options options[] = {
{ .key = {"scrub-freq"},
.type = GF_OPTION_TYPE_STR,
.default_value = "biweekly",
+ .op_version = {GD_OP_VERSION_3_7_0},
+ .flags = OPT_FLAG_SETTABLE,
.description = "Scrub frequency for volume <VOLNAME>",
},
{ .key = {"scrub-state"},
.type = GF_OPTION_TYPE_STR,
.default_value = "active",
+ .op_version = {GD_OP_VERSION_4_0_0},
+ .flags = OPT_FLAG_SETTABLE,
.description = "Pause/Resume scrub. Upon resume, scrubber "
"continues from where it left off.",
},