summaryrefslogtreecommitdiffstats
path: root/xlators/features/bit-rot/src/bitd/bit-rot-scrub.h
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2015-06-09 10:02:11 +0530
committerRaghavendra Bhat <raghavendra@redhat.com>2015-06-25 05:57:22 -0700
commit913631a0edffaefc0fae73df46f80e19422ebed9 (patch)
tree9be7034a4cb95bb368d948c673278e6bd150d488 /xlators/features/bit-rot/src/bitd/bit-rot-scrub.h
parentf1139ca4f8532c35f5f8024610ddc5a412f970e8 (diff)
features/bitrot: handle scrub states via state machine
A bunch of command line options for scrubber tempted the use of state machine to track current state of scrubber under various circumstances where the options could be in effect. Change-Id: Id614bb2e6af30a90d2391ea31ae0a3edeb4e0d69 BUG: 1231619 Signed-off-by: Venky Shankar <vshankar@redhat.com> Reviewed-on: http://review.gluster.org/11149 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/features/bit-rot/src/bitd/bit-rot-scrub.h')
-rw-r--r--xlators/features/bit-rot/src/bitd/bit-rot-scrub.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.h b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.h
index 6c4254a397a..427153c4bd7 100644
--- a/xlators/features/bit-rot/src/bitd/bit-rot-scrub.h
+++ b/xlators/features/bit-rot/src/bitd/bit-rot-scrub.h
@@ -16,11 +16,10 @@
void *br_fsscanner (void *);
-int32_t br_fsscan_schedule (xlator_t *, br_child_t *,
- struct br_scanfs *, struct br_scrubber *);
-int32_t br_fsscan_reschedule (xlator_t *this,
- br_child_t *child, struct br_scanfs *,
- struct br_scrubber *, gf_boolean_t);
+int32_t br_fsscan_schedule (xlator_t *, br_child_t *);
+int32_t br_fsscan_reschedule (xlator_t *, br_child_t *);
+int32_t br_fsscan_activate (xlator_t *, br_child_t *);
+int32_t br_fsscan_deactivate (xlator_t *, br_child_t *);
int32_t br_scrubber_handle_options (xlator_t *, br_private_t *, dict_t *);