diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-12-06 16:24:52 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-12-13 14:41:50 +0530 |
commit | af7e957b4954bd84b8f7df6bfbd59c939092ead2 (patch) | |
tree | adee47b6e02a44f5ba3f722d767dca929ccbd9c1 /xlators/features/gfid-access/src/gfid-access.c | |
parent | 088e2cbb5ee3f3e766b7e4021e2d86d0c5187de0 (diff) |
xlator: make 'xlator_api' mandatory
* Remove the options to load old symbol.
* keep only 'xlator_api' symbol from being exported using xlator.sym
* add xlator_api to all the xlators where its missing
NOTE: This covers all the xlators which has at least a test case
to validate its loading. If there is a translator, which doesn't
have any test, then we should probably remove that from codebase.
fixes: #164
Change-Id: Ibcdc8c9844cda6b4463d907a15813745d14c1ebb
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/features/gfid-access/src/gfid-access.c')
-rw-r--r-- | xlators/features/gfid-access/src/gfid-access.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xlators/features/gfid-access/src/gfid-access.c b/xlators/features/gfid-access/src/gfid-access.c index 450f108d16e..4a422ee658c 100644 --- a/xlators/features/gfid-access/src/gfid-access.c +++ b/xlators/features/gfid-access/src/gfid-access.c @@ -1408,3 +1408,15 @@ struct volume_options options[] = { /* This translator doesn't take any options, or provide any options */ {.key = {NULL}}, }; + +xlator_api_t xlator_api = { + .init = init, + .fini = fini, + .mem_acct_init = mem_acct_init, + .op_version = {1}, + .fops = &fops, + .cbks = &cbks, + .options = options, + .identifier = "gfid-access", + .category = GF_MAINTAINED, +}; |