Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/nfs Pull up revision 1.30 (requested by fvdl):



details:   https://anonhg.NetBSD.org/src/rev/4d2b24abc2f6
branches:  netbsd-1-4
changeset: 469967:4d2b24abc2f6
user:      he <he%NetBSD.org@localhost>
date:      Wed Jan 05 23:39:14 2000 +0000

description:
Pull up revision 1.30 (requested by fvdl):
  Insert an extra VOP_ACCESS check in nfs_lookup, preventing cached
  access mishaps for lookup and getattr.  Fixes PR#8884.

diffstat:

 sys/nfs/nfs_node.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r da2525fc7ae8 -r 4d2b24abc2f6 sys/nfs/nfs_node.c
--- a/sys/nfs/nfs_node.c        Wed Jan 05 23:33:57 2000 +0000
+++ b/sys/nfs/nfs_node.c        Wed Jan 05 23:39:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_node.c,v 1.28 1998/09/01 03:11:36 thorpej Exp $    */
+/*     $NetBSD: nfs_node.c,v 1.28.6.1 2000/01/05 23:39:14 he Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -159,6 +159,7 @@
                np->n_fhp = &np->n_fh;
        memcpy((caddr_t)np->n_fhp, (caddr_t)fhp, fhsize);
        np->n_fhsize = fhsize;
+       np->n_accstamp = -1;
        np->n_vattr = pool_get(&nfs_vattr_pool, PR_WAITOK);
        memset(np->n_vattr, 0, sizeof (struct vattr));
        lockmgr(&nfs_hashlock, LK_RELEASE, 0);



Home | Main Index | Thread Index | Old Index