From owner-freebsd-hackers Sat Sep 25 10:32:42 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id F1B2C152F6 for ; Sat, 25 Sep 1999 10:32:39 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id KAA55543; Sat, 25 Sep 1999 10:32:34 -0700 (PDT) (envelope-from dillon) Date: Sat, 25 Sep 1999 10:32:34 -0700 (PDT) From: Matthew Dillon Message-Id: <199909251732.KAA55543@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... References: <199909242236.AAA01522@excalibur.lps.ens.fr> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : 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