From 020c39e8ab657fbf12c102186c14aca24239efd4 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Tue, 16 Aug 2016 10:43:07 +0530 Subject: storage/posix: Log EEXIST failures at DEBUG log-level Change-Id: I56f160058d2e2751ca75f1f75ea8254a1b8a6bf3 BUG: 1367258 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/15161 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/storage/posix/src/posix.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 65b28dc8d21..6f9b2c0aee0 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -1229,6 +1229,7 @@ posix_mknod (call_frame_t *frame, xlator_t *this, char *pgfid_xattr_key = NULL; gf_boolean_t entry_created = _gf_false, gfid_set = _gf_false; gf_boolean_t linked = _gf_false; + gf_loglevel_t level = GF_LOG_NONE; DECLARE_OLD_FS_ID_VAR; @@ -1307,9 +1308,11 @@ real_op: } sys_close (tmp_fd); } else { - - gf_msg (this->name, GF_LOG_ERROR, errno, - P_MSG_MKNOD_FAILED, + if (op_errno == EEXIST) + level = GF_LOG_DEBUG; + else + level = GF_LOG_ERROR; + gf_msg (this->name, level, errno, P_MSG_MKNOD_FAILED, "mknod on %s failed", real_path); goto out; } -- cgit