From 9ebe1ede1f7bcf9a7cbc42314053ddf28c45b864 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Wed, 6 Nov 2013 17:25:22 +0530 Subject: posix: Fix excessive logging resulting from get_real_filename failure from samba Change-Id: I641d028165da7b8501bd372c62d2df89a9d4db1f BUG: 1027174 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/6237 Reviewed-by: poornima g Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/storage/posix/src/posix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (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 61018804c..93ece2474 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -2760,8 +2760,9 @@ posix_getxattr (call_frame_t *frame, xlator_t *this, if (ret < 0) { op_ret = -1; op_errno = -ret; - gf_log (this->name, GF_LOG_WARNING, - "Failed to get rea filename (%s, %s): %s", + gf_log (this->name, (op_errno == ENOENT) ? + GF_LOG_DEBUG : GF_LOG_WARNING, + "Failed to get real filename (%s, %s): %s", loc->path, name, strerror (op_errno)); goto out; } -- cgit