diff options
author | Gaurav Kumar Garg <ggarg@redhat.com> | 2015-04-23 18:44:30 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2015-05-03 22:17:17 -0700 |
commit | f81deb95db417eeededf7442a30304a880cc8169 (patch) | |
tree | 49c4d04d2f00cc601ecc30bc32b1b45524c88913 /xlators/mgmt/glusterd/src/glusterd-volume-set.c | |
parent | 7c4d103700f0bbe0c5e134f743a68f370e5600be (diff) |
features/bitrot: Per volume bitrot translator
Currently whatever bitrot/scrubber tunable value user set for one
volume that value is considering for all other volumes also.
Each volume should act on their respective bitrot/scrubber tunable
value.
For handling bitrot/scrubber tunable value independently with respect
to all the volume bitrot and scrubber translator should run seperatly
for each volume.
Change-Id: I1d9379508afe6cfd2f78e3ebf29c829c362d84a9
BUG: 1170075
Signed-off-by: Gaurav Kumar Garg <ggarg@redhat.com>
Reviewed-on: http://review.gluster.org/10352
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Tested-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index c57840f0fde..919e0d445c6 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -1268,7 +1268,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { { .key = VKEY_FEATURES_BITROT, .voltype = "features/bitrot", .option = "bitrot", - .value = "off", + .value = "disable", .type = NO_DOC, .flags = OPT_FLAG_FORCE, .op_version = GD_OP_VERSION_3_7_0 @@ -1779,26 +1779,23 @@ struct volopt_map_entry glusterd_volopt_map[] = { .op_version = GD_OP_VERSION_3_7_0, .flags = OPT_FLAG_CLIENT_OPT }, - { .key = "features.bitrot", - .voltype = "features/bitrot-stub", - .value = "disable", - .op_version = GD_OP_VERSION_3_7_0, - .type = NO_DOC, - }, { .key = "features.scrub-throttle", .voltype = "features/bitrot", - .value = "normal", + .value = "lazy", + .option = "scrub-throttle", .op_version = GD_OP_VERSION_3_7_0, .type = NO_DOC, }, { .key = "features.scrub-freq", .voltype = "features/bitrot", - .value = "monthly", + .value = "biweekly", + .option = "scrub-frequency", .op_version = GD_OP_VERSION_3_7_0, .type = NO_DOC, }, { .key = "features.scrub", .voltype = "features/bitrot", + .option = "scrubber", .op_version = GD_OP_VERSION_3_7_0, .type = NO_DOC, }, |