summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorGaurav Kumar Garg <ggarg@redhat.com>2015-04-23 18:44:30 +0530
committerKaushal M <kaushal@redhat.com>2015-05-03 22:17:17 -0700
commitf81deb95db417eeededf7442a30304a880cc8169 (patch)
tree49c4d04d2f00cc601ecc30bc32b1b45524c88913 /xlators/features
parent7c4d103700f0bbe0c5e134f743a68f370e5600be (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/features')
-rw-r--r--xlators/features/bit-rot/src/bitd/bit-rot.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/xlators/features/bit-rot/src/bitd/bit-rot.c b/xlators/features/bit-rot/src/bitd/bit-rot.c
index a5c5ab76964..b7ffe762c80 100644
--- a/xlators/features/bit-rot/src/bitd/bit-rot.c
+++ b/xlators/features/bit-rot/src/bitd/bit-rot.c
@@ -1479,10 +1479,30 @@ struct volume_options options[] = {
.description = "default time duration for which an object waits "
"before it is signed",
},
+ { .key = {"brick-count"},
+ .type = GF_OPTION_TYPE_STR,
+ .description = "Total number of bricks for the current node for "
+ "all volumes in the trusted storage pool.",
+ },
{ .key = {"scrubber"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "false",
.description = "option to run as a scrubber",
},
+ { .key = {"scrub-throttle"},
+ .type = GF_OPTION_TYPE_STR,
+ .description = "Scrub-throttle value is a measure of how fast "
+ "or slow the scrubber scrubs the filesystem for "
+ "volume <VOLNAME>",
+ },
+ { .key = {"scrub-freq"},
+ .type = GF_OPTION_TYPE_STR,
+ .description = "Scrub frequency for volume <VOLNAME>",
+ },
+ { .key = {"scrub-state"},
+ .type = GF_OPTION_TYPE_STR,
+ .description = "Pause/Resume scrub. Upon resume, scrubber "
+ "continues from where it left off.",
+ },
{ .key = {NULL} },
};