summaryrefslogtreecommitdiffstats
path: root/xlators/meta
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-11-28 10:05:39 +0530
committerAmar Tumballi <amarts@redhat.com>2018-12-06 07:54:28 +0000
commit340e58f9b3bcdfe4314da65e592dcd5c2daf6fd9 (patch)
treee5e403711221b488ed6c4ee72322e2657d9065f8 /xlators/meta
parent7ea5f438f60df9aa16027030f2b24f31bc07524b (diff)
all: add xlator_api to many translators
Fixes: #164 Change-Id: I93ad6f0232a1dc534df099059f69951e1339086f Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/meta')
-rw-r--r--xlators/meta/src/meta.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/xlators/meta/src/meta.c b/xlators/meta/src/meta.c
index ab131d798ae..e1b9a2b6581 100644
--- a/xlators/meta/src/meta.c
+++ b/xlators/meta/src/meta.c
@@ -226,11 +226,11 @@ out:
return ret;
}
-int
+void
fini(xlator_t *this)
{
GF_FREE(this->private);
- return 0;
+ return;
}
struct xlator_fops fops = {.lookup = meta_lookup,
@@ -262,3 +262,15 @@ struct volume_options options[] = {
.description = "Name of default meta directory."},
{.key = {NULL}},
};
+
+xlator_api_t xlator_api = {
+ .init = init,
+ .fini = fini,
+ .mem_acct_init = mem_acct_init,
+ .op_version = {1}, /* Present from the initial version */
+ .fops = &fops,
+ .cbks = &cbks,
+ .options = options,
+ .identifier = "meta",
+ .category = GF_TECH_PREVIEW,
+};