[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#406902: [PATCH] Re: Bug#406902 kernel NFS data loss



The patch below (against 2.6.8-16sarge7) seems to solve the problem.
I now run my machines with both this patch, and also the one I submitted
on 20 Jul. Please include in future versions of the kernel.

Thanks,

Paul Szabo   psz@maths.usyd.edu.au   http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics   University of Sydney    Australia


--- fs/exportfs/expfs.c.bak	2007-04-17 07:58:28.000000000 +1000
+++ fs/exportfs/expfs.c	2007-07-23 10:04:19.759071709 +1000
@@ -76,6 +76,12 @@
 			return result;
 		if (S_ISDIR(result->d_inode->i_mode)) {
 			/* there is no other dentry, so fail */
+/* PSz 23 Jul 07 Not ESTALE but EACCES
+ * See comments around line 292 below, and
+ * http://bugs.debian.org/255931
+ * http://bugs.debian.org/406902
+ */
+			err = -EACCES;
 			goto err_result;
 		}
 		/* try any other aliases */



Reply to: