From 340e58f9b3bcdfe4314da65e592dcd5c2daf6fd9 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 28 Nov 2018 10:05:39 +0530 Subject: all: add xlator_api to many translators Fixes: #164 Change-Id: I93ad6f0232a1dc534df099059f69951e1339086f Signed-off-by: Amar Tumballi --- xlators/features/index/src/index.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'xlators/features/index/src') diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c index 6099115d6e7..d9768b32d7f 100644 --- a/xlators/features/index/src/index.c +++ b/xlators/features/index/src/index.c @@ -2661,3 +2661,17 @@ struct volume_options options[] = { .default_value = "trusted.afr.{{ volume.name }}"}, {.key = {NULL}}, }; + +xlator_api_t xlator_api = { + .init = init, + .fini = fini, + .notify = notify, + .mem_acct_init = mem_acct_init, + .op_version = {1}, /* Present from the initial version */ + .dumpops = &dumpops, + .fops = &fops, + .cbks = &cbks, + .options = options, + .identifier = "index", + .category = GF_MAINTAINED, +}; -- cgit