summaryrefslogtreecommitdiffstats
path: root/xlators/nfs
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2012-04-02 14:57:20 +0530
committerVijay Bellur <vijay@gluster.com>2012-04-02 02:42:03 -0700
commitdc2a52fa0d83ba2e807a175655fc0362b707a22d (patch)
treee12edf604554bfac40b2f51356d732d6eb0e2de2 /xlators/nfs
parente51f690d7c5eda400316ba97ab2f4ce448b51e7d (diff)
nlm: print the reason of failure when clnt_create fails to create the client object
Change-Id: Icc271e2166dbccc2cc12029e26c674fdb79fe975 BUG: 808390 Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Reviewed-on: http://review.gluster.com/3061 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/nfs')
-rw-r--r--xlators/nfs/server/src/nlm4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nlm4.c b/xlators/nfs/server/src/nlm4.c
index b54e14b10df..03257806e0b 100644
--- a/xlators/nfs/server/src/nlm4.c
+++ b/xlators/nfs/server/src/nlm4.c
@@ -487,7 +487,8 @@ int nsm_monitor(char *host)
clnt = clnt_create("localhost", SM_PROG, SM_VERS, "tcp");
if(!clnt)
{
- gf_log (GF_NLM, GF_LOG_ERROR, "Clnt_create()");
+ gf_log (GF_NLM, GF_LOG_ERROR, "%s",
+ clnt_spcreateerror ("Clnt_create()"));
goto out;
}