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:22:34 -0700 |
commit | 0215d1df7cedf7ca54cf96d2a09a68b294cf9459 (patch) | |
tree | dc43d2da3eb4b51507c745ea25a70f4a75692e93 /xlators | |
parent | 2440dace036a4955ca60d833b2ae514bab679126 (diff) |
storage/posix: Log EEXIST failures at DEBUG log-level
Backport of: http://review.gluster.org/15161
Change-Id: I98faa1170dae89879f678e8836f499bbc6ace675
BUG: 1367362
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/15174
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: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators')
-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 ad42d2e1c8f..f58cd27473d 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -1173,6 +1173,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; @@ -1251,9 +1252,11 @@ real_op: } 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; } |