From e8cce0bed6e5e6bd926ee465c5ec7a00b0b37793 Mon Sep 17 00:00:00 2001 From: Basavanagowda Kanur Date: Thu, 2 Apr 2009 06:07:04 +0530 Subject: cluster/{nufa,dht} fail revalidates with ESTALE, in case a stale layout is found in inode->ctx. Signed-off-by: Anand V. Avati --- xlators/cluster/dht/src/dht-common.c | 4 ++-- xlators/cluster/dht/src/nufa.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 86ec00a6fad..b96db22cbca 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -726,10 +726,10 @@ dht_lookup (call_frame_t *frame, xlator_t *this, } if (layout->gen && (layout->gen < conf->gen)) { - gf_log (this->name, GF_LOG_WARNING, + gf_log (this->name, GF_LOG_DEBUG, "incomplete layout failure for path=%s", loc->path); - op_errno = EAGAIN; + op_errno = ESTALE; goto err; } diff --git a/xlators/cluster/dht/src/nufa.c b/xlators/cluster/dht/src/nufa.c index 544913411db..659a4acd55c 100644 --- a/xlators/cluster/dht/src/nufa.c +++ b/xlators/cluster/dht/src/nufa.c @@ -214,10 +214,10 @@ nufa_lookup (call_frame_t *frame, xlator_t *this, } if (layout->gen && (layout->gen < conf->gen)) { - gf_log (this->name, GF_LOG_WARNING, + gf_log (this->name, GF_LOG_DEBUG, "incomplete layout failure for path=%s", loc->path); - op_errno = EAGAIN; + op_errno = ESTALE; goto err; } -- cgit