Who broke NFS?

Matthew Dillon dillon at apollo.backplane.com
Tue Dec 5 08:13:24 PST 2006


   Try this patch.  It basically does the same thing as the
   other patch, but is more along the lines of the intent of
   the code.  I meant to use 'nch' as a temporary just to 
   construct the handle needed to fetch the directory vnode.

					-Matt

Index: vfs/nfs/nfs_subs.c
===================================================================
RCS file: /cvs/src/sys/vfs/nfs/nfs_subs.c,v
retrieving revision 1.43
diff -u -r1.43 nfs_subs.c
--- vfs/nfs/nfs_subs.c	27 Oct 2006 04:56:34 -0000	1.43
+++ vfs/nfs/nfs_subs.c	5 Dec 2006 16:04:18 -0000
@@ -1604,7 +1604,7 @@
 	 */
 	if (error == 0) {
 		if (dvpp) {
-			if (nch.ncp->nc_parent) {
+			if (nd->nl_nch.ncp->nc_parent) {
 				nch = nd->nl_nch;
 				nch.ncp = nch.ncp->nc_parent;
 				error = cache_vget(&nch, nd->nl_cred,





More information about the Kernel mailing list