summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server
diff options
context:
space:
mode:
authorXie Changlong <xiechanglong@cmss.chinamobile.com>2018-06-08 10:59:56 +0800
committerAmar Tumballi <amarts@redhat.com>2018-06-25 04:47:57 +0000
commit1ced279c2e8ea0b4d1290da629e05c480a18f888 (patch)
treefdde0b8c211ff35a95991d212bc1516976f4313e /xlators/nfs/server
parentf9f1d26f93d10c41c40f13ccf9b751acb03f43bd (diff)
nfs: add missing rpcsvc_program_unregister_rpcbind6
Otherwise, event if nfs.register-with-portmap is disabled, we could also use ipv6 to mount nfs through portmap. Change-Id: I7546e03d942dfaf2252d57e17be9c1cca986a715 fixes: bz#1593651 Signed-off-by: Xie Changlong <xiechanglong@cmss.chinamobile.com>
Diffstat (limited to 'xlators/nfs/server')
-rw-r--r--xlators/nfs/server/src/nfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c
index 1ac5a9213ac..bf8132f56a5 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -229,6 +229,9 @@ nfs_program_unregister_portmap_all (struct nfs_state *nfs)
if (prog == NULL)
continue;
(void) rpcsvc_program_unregister_portmap (prog);
+#ifdef IPV6_DEFAULT
+ (void) rpcsvc_program_unregister_rpcbind6 (prog);
+#endif
}
return (0);