summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Amaravathi <rajesh.amaravathi@gmail.com>2011-09-06 17:29:31 +0530
committerAnand Avati <avati@gluster.com>2011-09-08 01:39:50 -0700
commit73ae561db9054c67ce120eb87fa955943bdc06bd (patch)
treede84b13d53d56cb80ea5f807c565eb732c201a8e
parentd7b1463bf35a9c5ac30456d143cb4b67a03a93a6 (diff)
storage/posix: posix getxattr log enhancement
Now the key is logged with getxattr failure. Change-Id: I96a9234cf138ae0922dc403e2fddcd4df0d89df8 BUG: 3283 Reviewed-on: http://review.gluster.com/373 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r--xlators/storage/posix/src/posix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 49a874b6d..30f246c3e 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -3014,13 +3014,13 @@ do_xattrop (call_frame_t *frame, xlator_t *this,
if (loc)
gf_log (this->name, GF_LOG_ERROR,
"getxattr failed on %s while doing "
- "xattrop: %s", path,
- strerror (op_errno));
+ "xattrop: Key:%s (%s)", path,
+ trav->key, strerror (op_errno));
else
gf_log (this->name, GF_LOG_ERROR,
"fgetxattr failed on fd=%d while doing "
- "xattrop: %s", _fd,
- strerror (op_errno));
+ "xattrop: Key:%s (%s)", _fd,
+ trav->key, strerror (op_errno));
}
op_ret = -1;