Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Sep 1999 10:32:34 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Thierry.Besancon@lps.ens.fr (Thierry Besancon)
Cc:        dcs@newsguy.com, dillon@apollo.backplane.com, crossd@cs.rpi.edu, freebsd-hackers@FreeBSD.ORG
Subject:   Re: RE: missing files with NFSv3 and Solaris2.7 machine...
Message-ID:  <199909251732.KAA55543@apollo.backplane.com>
References:   <199909242236.AAA01522@excalibur.lps.ens.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

:        Hello
:
:I read your thread about problem with NFS v3.
:
:I encountered this kind of problem some times ago (since FreeBSD 2.2.2) 
:between DEC stations running Digital Unix 3.2 ou 4.0.
:When doing "ls" in a NFS mounted directory, I got something like that :

    Try the patch I posted a little while ago.  I'll include it again.

    I'm still testing it to make sure it doesn't blow up FreeBSD boxes.

					-Matt


Index: nfs_serv.c
===================================================================
RCS file: /home/ncvs/src/sys/nfs/nfs_serv.c,v
retrieving revision 1.85
diff -u -r1.85 nfs_serv.c
--- nfs_serv.c	1999/09/17 05:57:57	1.85
+++ nfs_serv.c	1999/09/22 03:51:36
@@ -3032,11 +3032,13 @@
 	nqsrv_getl(vp, ND_READ);
 	if (v3) {
 		error = getret = VOP_GETATTR(vp, &at, cred, procp);
+#if 0
 		/*
 		 * XXX This check may be too strict for Solaris 2.5 clients.
 		 */
 		if (!error && toff && verf && verf != at.va_filerev)
 			error = NFSERR_BAD_COOKIE;
+#endif
 	}
 	if (!error)
 		error = nfsrv_access(vp, VEXEC, cred, rdonly, procp, 0);
@@ -3312,11 +3314,13 @@
 		goto nfsmout;
 	}
 	error = getret = VOP_GETATTR(vp, &at, cred, procp);
+#if 0
 	/*
 	 * XXX This check may be too strict for Solaris 2.5 clients.
 	 */
 	if (!error && toff && verf && verf != at.va_filerev)
 		error = NFSERR_BAD_COOKIE;
+#endif
 	if (!error) {
 		nqsrv_getl(vp, ND_READ);
 		error = nfsrv_access(vp, VEXEC, cred, rdonly, procp, 0);


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909251732.KAA55543>