diff options
author | Basavanagowda Kanur <gowda@gluster.com> | 2009-04-02 06:09:26 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-02 18:09:46 +0530 |
commit | 8e621bdfff915f40d67ed5b2d17914226c601108 (patch) | |
tree | 5cbf0bb6c199c598f8e517bdf1a2d7abaaf458a5 /xlators | |
parent | 2b63980c5da5e82c1a80fe91115fb8d8af201755 (diff) |
cluster/stripe to propogate ESTALE to parent.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/stripe/src/stripe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c index 0b598e69150..2053ec72aef 100644 --- a/xlators/cluster/stripe/src/stripe.c +++ b/xlators/cluster/stripe/src/stripe.c @@ -429,8 +429,10 @@ stripe_stack_unwind_inode_lookup_cbk (call_frame_t *frame, "%s returned error %s", ((call_frame_t *)cookie)->this->name, strerror (op_errno)); - local->op_errno = op_errno; - if (op_errno == ENOTCONN) + if (local->op_errno != ESTALE) + local->op_errno = op_errno; + if ((op_errno == ENOTCONN) + || (op_errno == ESTALE)) local->failed = 1; } |