diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2016-08-16 10:43:07 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2016-08-17 03:21:31 -0700 |
commit | 3f46884be3de3bf4cd096d637013566b53336db4 (patch) | |
tree | d6f4a7aebd230acb908b2b3219af840c83cd1624 | |
parent | fe871ea1ccbfcfc2ef0b6eb6610a683569e5dca9 (diff) |
storage/posix: Log EEXIST failures at DEBUG log-level
Backport of: http://review.gluster.org/15161
Change-Id: I0a74ea4c9b36d7b3f1e31083b8af08ca8a981c2f
BUG: 1367363
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/15175
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
-rw-r--r-- | xlators/storage/posix/src/posix.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index e8404860fa8..5295697cc94 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; } |