From f81deb95db417eeededf7442a30304a880cc8169 Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Thu, 23 Apr 2015 18:44:30 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/10352 Reviewed-by: Venky Shankar Tested-by: Venky Shankar Reviewed-by: Atin Mukherjee Reviewed-by: Kaushal M --- xlators/features/bit-rot/src/bitd/bit-rot.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'xlators/features/bit-rot/src/bitd/bit-rot.c') 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 ", + }, + { .key = {"scrub-freq"}, + .type = GF_OPTION_TYPE_STR, + .description = "Scrub frequency for volume ", + }, + { .key = {"scrub-state"}, + .type = GF_OPTION_TYPE_STR, + .description = "Pause/Resume scrub. Upon resume, scrubber " + "continues from where it left off.", + }, { .key = {NULL} }, }; -- cgit