summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBasavanagowda Kanur <gowda@gluster.com>2009-04-02 06:09:56 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-04-02 18:09:51 +0530
commitcda677a98d039de6381887422d0b482ed412daaf (patch)
treeb0bd85242f563745d2bec9ecbd26697ad1370ff8
parent8e621bdfff915f40d67ed5b2d17914226c601108 (diff)
mount/fuse to silently send fresh lookup for ESTALEd revalidates. log only in DEBUG level.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-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 75f4d771a06..247a77ea9e8 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;