diff options
| author | krishna <krishna@gluster.com> | 2011-09-14 16:09:16 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vijay@gluster.com> | 2011-09-21 23:55:14 -0700 | 
| commit | 8fc81caf43d491a49134e6491b813843e490bb99 (patch) | |
| tree | 506a36d13d3d9c5ef330f311ab0cc73409fd7b72 /xlators/nfs/server/src/mount3.c | |
| parent | abe47d434308e2ac5926fc8e292cced3688b7ca4 (diff) | |
nfs: enhance NFS log messages.
Change-Id: I6c2eaa2795756f515b5fb2ea5098d3dcb4ef77c4
BUG: 3527
Reviewed-on: http://review.gluster.com/433
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/nfs/server/src/mount3.c')
| -rw-r--r-- | xlators/nfs/server/src/mount3.c | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/mount3.c b/xlators/nfs/server/src/mount3.c index 9c57f280c..62ad34384 100644 --- a/xlators/nfs/server/src/mount3.c +++ b/xlators/nfs/server/src/mount3.c @@ -277,9 +277,10 @@ mnt3svc_lookup_mount_cbk (call_frame_t *frame, void  *cookie,                  op_errno = EINVAL;          } -        if (op_ret == -1) +        if (op_ret == -1) { +                gf_log (GF_NFS, GF_LOG_ERROR, "error=%s", strerror (op_errno));                  status = mnt3svc_errno_to_mnterr (op_errno); - +        }          if (status != MNT3_OK)                  goto xmit_res; @@ -548,6 +549,8 @@ mnt3_resolve_subdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,          mres = frame->local;          mntxl = (xlator_t *)cookie;          if (op_ret == -1) { +                gf_log (GF_NFS, GF_LOG_ERROR, "path=%s (%s)", +                        mres->resolveloc.path, strerror (op_errno));                  mntstat = mnt3svc_errno_to_mnterr (op_errno);                  goto err;          }  | 
