From 8b5dbe6b43be3a5c23a7bd7ad1634b1e3b5bdc07 Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Tue, 5 Mar 2013 17:43:26 +0530 Subject: Storage/posix: Don't log at ERROR level for failed getxattr. Problem: ENOATTR returned by getxattr -n was being logged at ERROR level. Solution: Moved logging to DEBUG level. Change-Id: I982a577a4c231faa958ea71abdb272f8d5ffd70c BUG: 918052 Signed-off-by: Raghavendra Talur Reviewed-on: http://review.gluster.org/4628 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/storage/posix/src/posix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/storage/posix/src/posix.c') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 44aeca356ba..04b5f9bbce7 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -2590,6 +2590,10 @@ posix_getxattr (call_frame_t *frame, xlator_t *this, "supported (try remounting" " brick with 'user_xattr' " "flag)"); + } else if (op_errno == ENOATTR) { + gf_log (this->name, GF_LOG_DEBUG, + "No such attribute:%s for file %s", + key, real_path); } else { gf_log (this->name, GF_LOG_ERROR, "getxattr failed on %s: %s (%s)", -- cgit