From 73ae561db9054c67ce120eb87fa955943bdc06bd Mon Sep 17 00:00:00 2001 From: Rajesh Amaravathi Date: Tue, 6 Sep 2011 17:29:31 +0530 Subject: 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 Reviewed-by: Anand Avati --- xlators/storage/posix/src/posix.c | 8 ++++---- 1 file 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; -- cgit