diff options
Diffstat (limited to 'xlators/nfs/server/src/nfs.c')
| -rw-r--r-- | xlators/nfs/server/src/nfs.c | 19 | 
1 files changed, 17 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index ceb4943bc93..3dbe3c7cea1 100644 --- a/xlators/nfs/server/src/nfs.c +++ b/xlators/nfs/server/src/nfs.c @@ -1529,7 +1529,7 @@ notify(xlator_t *this, int32_t event, void *data, ...)      return 0;  } -int +void  fini(xlator_t *this)  {      struct nfs_state *nfs = NULL; @@ -1539,7 +1539,7 @@ fini(xlator_t *this)      gf_msg_debug(GF_NFS, 0, "NFS service going down");      nfs_deinit_versions(&nfs->versions, this);      GF_FREE(this->instance_name); -    return 0; +    return;  }  int32_t @@ -2040,3 +2040,18 @@ struct volume_options options[] = {      },      {.key = {NULL}},  }; + +xlator_api_t xlator_api = { +    .init = init, +    .fini = fini, +    .notify = notify, +    .reconfigure = reconfigure, +    .mem_acct_init = mem_acct_init, +    .op_version = {1}, +    .dumpops = &dumpops, +    .fops = &fops, +    .cbks = &cbks, +    .options = options, +    .identifier = "gnfs", +    .category = GF_MAINTAINED, +};  | 
