diff options
Diffstat (limited to 'xlators/nfs/server/src/nfs.c')
-rw-r--r-- | xlators/nfs/server/src/nfs.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index ca6fda69c..749379036 100644 --- a/xlators/nfs/server/src/nfs.c +++ b/xlators/nfs/server/src/nfs.c @@ -36,6 +36,7 @@ #include "logging.h" #include "nfs-fops.h" #include "inode.h" +#include "mount3.h" /* Every NFS version must call this function with the init function * for its particular version. @@ -134,8 +135,26 @@ err: int nfs_add_all_initiators (struct nfs_state *nfs) { + int ret = 0; + /* Add the initializers for all versions. */ - return 0; + ret = nfs_add_initer (&nfs->versions, mnt3svc_init); + if (ret == -1) { + gf_log (GF_NFS, GF_LOG_ERROR, "Failed to add protocol" + " initializer"); + goto ret; + } + + ret = nfs_add_initer (&nfs->versions, mnt1svc_init); + if (ret == -1) { + gf_log (GF_NFS, GF_LOG_ERROR, "Failed to add protocol" + " initializer"); + goto ret; + } + + ret = 0; +ret: + return ret; } |