summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-bridge.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mount/fuse/src/fuse-bridge.c')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 75f4d771a..247a77ea9 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -96,6 +96,9 @@ typedef struct fuse_private fuse_private_t;
dict_unref (refs); \
} while (0)
+#define GF_SELECT_LOG_LEVEL(_errno) \
+ (((_errno == ENOENT) || (_errno == ESTALE))? \
+ GF_LOG_DEBUG : GF_LOG_WARNING)
typedef struct {
void *pool;
@@ -296,7 +299,7 @@ need_fresh_lookup (int32_t op_ret, int32_t op_errno,
{
if (op_ret == -1) {
gf_log ("fuse-bridge",
- (op_errno == ENOENT)? GF_LOG_DEBUG: GF_LOG_WARNING,
+ GF_SELECT_LOG_LEVEL(op_errno),
"revalidate of %s failed (%s)",
loc->path, strerror (op_errno));
return 1;