diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2010-03-31 07:27:05 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-03-31 07:44:09 -0700 |
commit | f66f04e3af1f31a4c51b6a87f5e32ea2e3c7b438 (patch) | |
tree | 450da8640fd35525a3b288893f86fbd33b0bd47e /xlators/nfs/server/src/nfs.c | |
parent | e63053803dca86b4283b71bc4ef4cb180ec72d89 (diff) |
nfs: Add NFSv3 protocol support
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 399 (NFS translator with Mount v3 and NFS v3 support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=399
Diffstat (limited to 'xlators/nfs/server/src/nfs.c')
-rw-r--r-- | xlators/nfs/server/src/nfs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index 74937903612..488ece419cb 100644 --- a/xlators/nfs/server/src/nfs.c +++ b/xlators/nfs/server/src/nfs.c @@ -37,6 +37,7 @@ #include "nfs-fops.h" #include "inode.h" #include "mount3.h" +#include "nfs3.h" /* Every NFS version must call this function with the init function * for its particular version. @@ -152,6 +153,13 @@ nfs_add_all_initiators (struct nfs_state *nfs) goto ret; } + ret = nfs_add_initer (&nfs->versions, nfs3svc_init); + if (ret == -1) { + gf_log (GF_NFS, GF_LOG_ERROR, "Failed to add protocol" + " initializer"); + goto ret; + } + ret = 0; ret: return ret; |