summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2016-05-11 16:39:59 +0530
committerNiels de Vos <ndevos@redhat.com>2016-05-14 07:17:12 -0700
commit95afed38767610313dbf1cfdc871d7648ce68d33 (patch)
tree57d52ca10487aa9f249481b57920adb60b06882a
parentc2fce3fb987d5b795ed829c15e28d4b41177076e (diff)
mount/fuse: Log gfid and fd ptr as well when writev/readv fail
Backport of: http://review.gluster.org/14291 Change-Id: I9100c7d75417b0c9bc3df112912cf773994b3a97 BUG: 1335730 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/14324 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: Niels de Vos <ndevos@redhat.com>
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c12
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 ee93aa3291f..c8e7c35ce17 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -2221,8 +2221,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);
}
@@ -2302,7 +2305,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);