summaryrefslogtreecommitdiffstats
path: root/xlators/features/bit-rot/src/bitd/bit-rot-scrub.h
blob: 4e5f67bc021830514f40e3afb62bbe93b5175961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
   Copyright (c) 2015 Red Hat, Inc. <http://www.redhat.com>
   This file is part of GlusterFS.

   This file is licensed to you under your choice of the GNU Lesser
   General Public License, version 3 or any later version (LGPLv3 or
   later), or the GNU General Public License, version 2 (GPLv2), in all
   cases as published by the Free Software Foundation.
*/

#ifndef __BIT_ROT_SCRUB_H__
#define __BIT_ROT_SCRUB_H__

#include <glusterfs/xlator.h>
#include "bit-rot.h"

void *
br_fsscanner(void *);

int32_t
br_fsscan_schedule(xlator_t *);
int32_t
br_fsscan_reschedule(xlator_t *);
int32_t
br_fsscan_activate(xlator_t *);
int32_t
br_fsscan_deactivate(xlator_t *);
int32_t
br_fsscan_ondemand(xlator_t *);

int32_t
br_scrubber_handle_options(xlator_t *, br_private_t *, dict_t *);

int32_t
br_scrubber_monitor_init(xlator_t *, br_private_t *);

int32_t
br_scrubber_init(xlator_t *, br_private_t *);

int32_t
br_collect_bad_objects_from_children(xlator_t *this, dict_t *dict);

void
br_child_set_scrub_state(br_child_t *, gf_boolean_t);

#endif /* __BIT_ROT_SCRUB_H__ */