From 44a6dc9c392297be16c2e206fdc4e75a1b993497 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. BUG: 3283 Change-Id: Idc09b26c9196dded314df78ce3c765573160452b Reviewed-on: http://review.gluster.com/373 Tested-by: Gluster Build System Reviewed-by: Anand Avati Reviewed-on: http://review.gluster.com/755 Reviewed-by: Harshavardhana Tested-by: Harshavardhana Reviewed-by: Vijay Bellur --- 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 30b2b728b..347741da1 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -3930,13 +3930,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