summaryrefslogtreecommitdiffstats
path: root/xlators/features/metadisp/src/metadisp.c
blob: 3c8f150cebc16131c7d75c6c4391b310cf940593 (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
#include <glusterfs/call-stub.h>

#include "metadisp.h"
#include "metadisp-fops.h"

int32_t
init(xlator_t *this)
{
    if (!this->children) {
        gf_log(this->name, GF_LOG_ERROR,
               "not configured with children. exiting");
        return -1;
    }

    if (!this->parents) {
        gf_log(this->name, GF_LOG_WARNING, "dangling volume. check volfile ");
    }

    return 0;
}

void
fini(xlator_t *this)
{
    return;
}

/* defined in fops.c */
struct xlator_fops fops;

struct xlator_cbks cbks = {};

struct volume_options options[] = {
    {.key = {NULL}},
};

xlator_api_t xlator_api = {
    .init = init,
    .fini = fini,
    .fops = &fops,
    .cbks = &cbks,
    .options = options,
    .op_version = {1},
    .identifier = "metadisp",
    .category = GF_EXPERIMENTAL,
};