diff options
author | Rajesh Amaravathi <rajesh@redhat.com> | 2012-03-30 17:18:07 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-04-02 02:34:56 -0700 |
commit | 67450da471307d1c09bd21694a76fb12b2fcd405 (patch) | |
tree | dabaebf032c9689b2851a3f8744192404b920859 /xlators/mgmt/glusterd/src | |
parent | ca4d7c9dfc1d7f8c09994a862868f55b8320eb95 (diff) |
mgmt/glusterd: unregister NLM service from portmapper
Native NLM v4 service is unregistered from portmapper
when Nfs is stopped.
Change-Id: Id74cf9a31f6b00450504a1271bb47617aa5ec1fc
BUG: 786345
Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com>
Reviewed-on: http://review.gluster.com/3052
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index ec191e4f930..fc5a83e4564 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -68,11 +68,15 @@ #include <sys/sockio.h> #endif -#define MOUNT_PROGRAM 100005 -#define NFS_PROGRAM 100003 -#define NFSV3_VERSION 3 -#define MOUNTV3_VERSION 3 -#define MOUNTV1_VERSION 1 +#define NFS_PROGRAM 100003 +#define NFSV3_VERSION 3 + +#define MOUNT_PROGRAM 100005 +#define MOUNTV3_VERSION 3 +#define MOUNTV1_VERSION 1 + +#define NLM_PROGRAM 100021 +#define NLMV4_VERSION 4 char *glusterd_sock_dir = "/tmp"; static glusterd_lock_t lock; @@ -2923,6 +2927,11 @@ glusterd_nfs_pmap_deregister () else gf_log ("", GF_LOG_ERROR, "De-register NFSV3 is unsuccessful"); + if (pmap_unset (NLM_PROGRAM, NLMV4_VERSION)) + gf_log ("", GF_LOG_INFO, "De-registered NLM v4 successfully"); + else + gf_log ("", GF_LOG_ERROR, "De-registration of NLM v4 failed"); + } int |