summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-07-27 06:16:50 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-28 02:24:41 -0700
commitba98d9f472979d4bd648933b7940eb20e3c82116 (patch)
treebe1e6cda4c0167112ef7d063895b1a27c328573d
parent5e67bfb1dbb279e210d7ad1310818ef4a08ab913 (diff)
nfs3: Return ESTALE when fh resolver exhausts dirents
During hard fh resolution, if a directory traversal goes right through to end-of-dir without finding a hash match, we need to return an ESTALE, not ENOENT. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 854 (nfs server didn't start) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=854
-rw-r--r--xlators/nfs/server/src/nfs3-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c
index ada6f88f1..fa0e751c7 100644
--- a/xlators/nfs/server/src/nfs3-helpers.c
+++ b/xlators/nfs/server/src/nfs3-helpers.c
@@ -2864,7 +2864,7 @@ nfs3_fh_resolve_readdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
gf_log (GF_NFS3, GF_LOG_TRACE, "Directory read done: %s: %s",
cs->resolvedloc.path, strerror (op_ret));
cs->resolve_ret = -1;
- cs->resolve_errno = ENOENT;
+ cs->resolve_errno = ESTALE;
nfs3_call_resume (cs);
goto err;
}