summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs-generics.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-10-11 06:43:35 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-11 07:31:33 -0700
commit563ef3d12f8d7a927b403d04c279d9fc702faad0 (patch)
tree97f4aeab4d7233a779d3913d6249e871054112a0 /xlators/nfs/server/src/nfs-generics.c
parent6dd3b7fa3bc7acf9281cc17f08010675e2297089 (diff)
nfs: re-implement logic to perform fresh lookups when lookup revalidates fail
- implement lookup to pass via inode layer so that looked up entries make it to inode cache - implement lookup revalidation failure check in the fop layer Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1756 (NFS must revalidate inode on first ESTALE on lookup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1756
Diffstat (limited to 'xlators/nfs/server/src/nfs-generics.c')
-rw-r--r--xlators/nfs/server/src/nfs-generics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nfs-generics.c b/xlators/nfs/server/src/nfs-generics.c
index 0ebba689a35..eb6dc580be2 100644
--- a/xlators/nfs/server/src/nfs-generics.c
+++ b/xlators/nfs/server/src/nfs-generics.c
@@ -83,7 +83,8 @@ nfs_lookup (xlator_t *nfsx, xlator_t *xl, nfs_user_t *nfu, loc_t *pathloc,
if ((!nfsx) || (!xl) || (!pathloc) || (!nfu))
return ret;
- ret = nfs_fop_lookup (nfsx, xl, nfu, pathloc, cbk, local);
+ ret = nfs_inode_lookup (nfsx, xl, nfu, pathloc, cbk, local);
+
return ret;
}