summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh@redhat.com>2012-04-17 15:37:38 +0530
committerVijay Bellur <vijay@gluster.com>2012-04-17 06:08:06 -0700
commit4359d00fcb17d22ef487bff34943475c77194692 (patch)
tree9e422e11d0684ce1ba759a72987c3bb6c528ec96 /xlators/mgmt
parent6b0a44b4df1c1f7d70b2296862d25bf166009ebc (diff)
nlm: unregister nlm v1 when gNfs is stopped
NLM v1, registered to communicate with statd is unregistered once gNfs is stopped. Change-Id: I165658488f4971e743736f5f77c7247590e64bd5 BUG: 786345 Signed-off-by: Rajesh Amaravathi <rajesh@redhat.com> Reviewed-on: http://review.gluster.com/3166 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Krishna Srinivas <krishna@gluster.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 0bb0668a471..afc761ef560 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -77,6 +77,7 @@
#define NLM_PROGRAM 100021
#define NLMV4_VERSION 4
+#define NLMV1_VERSION 1
char *glusterd_sock_dir = "/tmp";
static glusterd_lock_t lock;
@@ -2947,6 +2948,11 @@ glusterd_nfs_pmap_deregister ()
else
gf_log ("", GF_LOG_ERROR, "De-registration of NLM v4 failed");
+ if (pmap_unset (NLM_PROGRAM, NLMV1_VERSION))
+ gf_log ("", GF_LOG_INFO, "De-registered NLM v1 successfully");
+ else
+ gf_log ("", GF_LOG_ERROR, "De-registration of NLM v1 failed");
+
}
int