diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2016-05-11 16:39:59 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2016-05-15 22:57:01 -0700 |
commit | bead4b82398f478941c2c9153d848f528fbe361e (patch) | |
tree | c52d4d842e44aea86199e7fef9e3498b01f11872 /xlators/mount | |
parent | e9ffc36fef8e1a96601c9cdd2dc76e45f320e301 (diff) |
mount/fuse: Log gfid and fd ptr as well when writev/readv fail
Backport of: http://review.gluster.org/14291
Change-Id: I0c9ff4b5d11075ae0ebd46039d764401aea36cbb
BUG: 1335729
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/14323
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/mount')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 3dac22a6976..01be4ef7902 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -2220,8 +2220,11 @@ fuse_readv_cbk (call_frame_t *frame, void *cookie, xlator_t *this, send_fuse_err (this, finh, ENOMEM); } else { gf_log ("glusterfs-fuse", GF_LOG_WARNING, - "%"PRIu64": READ => %d (%s)", frame->root->unique, - op_ret, strerror (op_errno)); + "%"PRIu64": READ => %d gfid=%s fd=%p (%s)", + frame->root->unique, op_ret, + (state->fd && state->fd->inode) ? + uuid_utoa (state->fd->inode->gfid) : "nil", + state->fd, strerror (op_errno)); send_fuse_err (this, finh, op_errno); } @@ -2301,7 +2304,10 @@ fuse_writev_cbk (call_frame_t *frame, void *cookie, xlator_t *this, send_fuse_obj (this, finh, &fwo); } else { gf_log ("glusterfs-fuse", GF_LOG_WARNING, - "%"PRIu64": WRITE => -1 (%s)", frame->root->unique, + "%"PRIu64": WRITE => -1 gfid=%s fd=%p (%s)", + frame->root->unique, + (state->fd && state->fd->inode) ? + uuid_utoa (state->fd->inode->gfid) : "nil", state->fd, strerror (op_errno)); send_fuse_err (this, finh, op_errno); |