blob: 0f27a8ec77687bb47dd34ebe9af18a4739f134d1 (
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
47
|
/*
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 __EC_HEALD_H__
#define __EC_HEALD_H__
#include "xlator.h"
struct _ec;
typedef struct _ec ec_t;
struct subvol_healer {
xlator_t *this;
int subvol;
gf_boolean_t local;
gf_boolean_t running;
gf_boolean_t rerun;
pthread_mutex_t mutex;
pthread_cond_t cond;
pthread_t thread;
};
struct _ec_self_heald;
typedef struct _ec_self_heald ec_self_heald_t;
struct _ec_self_heald {
gf_boolean_t iamshd;
gf_boolean_t enabled;
int timeout;
struct subvol_healer *index_healers;
struct subvol_healer *full_healers;
};
int
ec_xl_op (xlator_t *this, dict_t *input, dict_t *output);
int
ec_selfheal_daemon_init (xlator_t *this);
void ec_selfheal_childup (ec_t *ec, int child);
#endif /* __EC_HEALD_H__ */
|