summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2013-11-06 17:25:22 +0530
committerVijay Bellur <vbellur@redhat.com>2013-11-07 23:53:11 -0800
commit9ebe1ede1f7bcf9a7cbc42314053ddf28c45b864 (patch)
tree1f6dcd49b791fc1ec314a0b5152374bfdbd3df91 /xlators
parent0b2487d3bc8bc526d9b08698ea1434e94a6420d5 (diff)
posix: Fix excessive logging resulting from get_real_filename failure from samba
Change-Id: I641d028165da7b8501bd372c62d2df89a9d4db1f BUG: 1027174 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/6237 Reviewed-by: poornima g <pgurusid@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/storage/posix/src/posix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 61018804c7f..93ece2474f9 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;
}