diff options
author | Anand Avati <avati@gluster.com> | 2010-10-12 01:22:28 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-12 00:11:23 -0700 |
commit | 161850285ff06e90f2c990989bab9513dd4a4289 (patch) | |
tree | 340a9cfca92d4497d7460bd4520c0710ee139bc7 /xlators/nfs/server/src/nfs-fops.h | |
parent | efa94a4237bc98c629671e6fbb58948789604fe5 (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 d010db282..4feb916e2 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 * |