From ef60a29703f520c5bd06467efc4a0d0a33552a06 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Thu, 20 Apr 2017 10:17:07 +0530 Subject: mount/fuse: Replace GF_LOG_OCCASIONALLY with gf_log() to report fop failure at all times Change-Id: Ibd8e1c6172812951092ff6097ba4bed943051b7c BUG: 1440051 Signed-off-by: Krutika Dhananjay Reviewed-on: https://review.gluster.org/17086 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra Bhat --- xlators/mount/fuse/src/fuse-bridge.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 7056b6fd164..6b3b45999be 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -20,7 +20,6 @@ #undef open /* in perfuse.h, pulled from mount-gluster-compat.h */ #endif -static int gf_fuse_conn_err_log; static int gf_fuse_xattr_enotsup_log; void fini (xlator_t *this_xl); @@ -794,10 +793,8 @@ fuse_attr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, return 0; } - GF_LOG_OCCASIONALLY ( gf_fuse_conn_err_log, "glusterfs-fuse", - GF_LOG_WARNING, - "%"PRIu64": %s() %s => -1 (%s)", - frame->root->unique, + gf_log ("glusterfs-fuse", GF_LOG_WARNING, "%"PRIu64": %s() " + "%s => -1 (%s)", frame->root->unique, gf_fop_list[frame->root->op], state->loc.path ? state->loc.path : "ERR", strerror (op_errno)); -- cgit