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.28 (requested by fvdl):
details: https://anonhg.NetBSD.org/src/rev/9bee051fbe70
branches: netbsd-1-4
changeset: 469969:9bee051fbe70
user: he <he%NetBSD.org@localhost>
date: Wed Jan 05 23:40:16 2000 +0000
description:
Pull up revision 1.28 (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/nfsnode.h | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (33 lines):
diff -r 8e00bcd962c9 -r 9bee051fbe70 sys/nfs/nfsnode.h
--- a/sys/nfs/nfsnode.h Wed Jan 05 23:39:50 2000 +0000
+++ b/sys/nfs/nfsnode.h Wed Jan 05 23:40:16 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfsnode.h,v 1.27 1998/08/10 08:11:13 matthias Exp $ */
+/* $NetBSD: nfsnode.h,v 1.27.6.1 2000/01/05 23:40:16 he Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -94,12 +94,6 @@
* There is a unique nfsnode allocated for each active file,
* each current directory, each mounted-on file, text file, and the root.
* An nfsnode is 'named' by its file handle. (nget/nfs_node.c)
- * If this structure exceeds 256 bytes (it is currently 256 using 4.4BSD-Lite
- * type definitions), file handles of > 32 bytes should probably be split out
- * into a separate MALLOC()'d data structure. (Reduce the size of nfsfh_t by
- * changing the definition in nfsproto.h of NFS_SMALLFH.)
- * NB: Hopefully the current order of the fields is such that everything will
- * be well aligned and, therefore, tightly packed.
*/
struct nfsnode {
u_quad_t n_size; /* Current size of file */
@@ -136,6 +130,10 @@
short n_fhsize; /* size in bytes, of fh */
short n_flag; /* Flag for locking.. */
nfsfh_t n_fh; /* Small File Handle */
+ time_t n_accstamp; /* Access cache timestamp */
+ uid_t n_accuid; /* Last access requester */
+ int n_accmode; /* Mode last requested */
+ int n_accerror; /* Error last returned */
};
#define n_atim n_un1.nf_atim
Home |
Main Index |
Thread Index |
Old Index