From 563ef3d12f8d7a927b403d04c279d9fc702faad0 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Mon, 11 Oct 2010 06:43:35 +0000 Subject: 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 Signed-off-by: Vijay Bellur BUG: 1756 (NFS must revalidate inode on first ESTALE on lookup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1756 --- xlators/nfs/server/src/nfs-fops.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xlators/nfs/server/src/nfs-fops.h') 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 * -- cgit