summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.c
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2016-08-16 10:43:07 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-08-16 02:24:48 -0700
commit020c39e8ab657fbf12c102186c14aca24239efd4 (patch)
tree79a6b81b4eb2669d00303e8019bbc0548f813b3f /xlators/storage/posix/src/posix.c
parent2b0e83e908b3be2043e92a974ba92ae942bff4d1 (diff)
storage/posix: Log EEXIST failures at DEBUG log-level
Change-Id: I56f160058d2e2751ca75f1f75ea8254a1b8a6bf3 BUG: 1367258 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/15161 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-rw-r--r--xlators/storage/posix/src/posix.c9
1 files 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;
}