diff options
author | Anand Avati <avati@gluster.com> | 2010-10-11 06:43:35 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-11 07:31:33 -0700 |
commit | 563ef3d12f8d7a927b403d04c279d9fc702faad0 (patch) | |
tree | 97f4aeab4d7233a779d3913d6249e871054112a0 /xlators/nfs/server/src/nfs-fops.h | |
parent | 6dd3b7fa3bc7acf9281cc17f08010675e2297089 (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-fops.h')
-rw-r--r-- | xlators/nfs/server/src/nfs-fops.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs-fops.h b/xlators/nfs/server/src/nfs-fops.h index d010db2829b..4feb916e2ea 100644 --- a/xlators/nfs/server/src/nfs-fops.h +++ b/xlators/nfs/server/src/nfs-fops.h @@ -100,6 +100,12 @@ struct nfs_fop_local { char newpath[NFS_NAME_MAX]; xlator_t *nfsx; dict_t *dictgfid; + + /* Determine whether the call was a lookup revalidate in cases where + * lookup fails. Mangle the copied loc_t to perform a fresh lookup + */ + int is_revalidate; + loc_t revalidate_loc; }; extern struct nfs_fop_local * |