summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2008-08-08 21:44:44 +0000
committerthib <thib@openbsd.org>2008-08-08 21:44:44 +0000
commit03a8bcd4d8cbb6bd2d71c45baaaf4b00aa5934ad (patch)
treedb004b4645baec43e2ed712610a349081e4bc351
parentAfter beck@ changed the way nfsiod's are notified of work, the (diff)
downloadwireguard-openbsd-03a8bcd4d8cbb6bd2d71c45baaaf4b00aa5934ad.tar.xz
wireguard-openbsd-03a8bcd4d8cbb6bd2d71c45baaaf4b00aa5934ad.zip
o sync comment with reality, we have never malloc()'ed filehandles
and the dead code that was supposed todo that has been removed. o rename the NFS_SMALLFH constant to NFS_MAXFHSIZE, since it better reflects what it's for. ok blambert@
-rw-r--r--sys/nfs/nfsproto.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/nfs/nfsproto.h b/sys/nfs/nfsproto.h
index 3111612169a..9f0518b6056 100644
--- a/sys/nfs/nfsproto.h
+++ b/sys/nfs/nfsproto.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfsproto.h,v 1.7 2007/06/06 14:13:42 thib Exp $ */
+/* $OpenBSD: nfsproto.h,v 1.8 2008/08/08 21:44:44 thib Exp $ */
/* $NetBSD: nfsproto.h,v 1.1 1996/02/18 11:54:06 fvdl Exp $ */
/*
@@ -239,17 +239,13 @@ typedef enum { NFNON=0, NFREG=1, NFDIR=2, NFBLK=3, NFCHR=4, NFLNK=5,
/* Structs for common parts of the rpc's */
/*
* File Handle (32 bytes for version 2), variable up to 64 for version 3.
- * File Handles of up to NFS_SMALLFH in size are stored directly in the
- * nfs node, whereas larger ones are malloc'd. (This never happens when
- * NFS_SMALLFH is set to 64.)
- * NFS_SMALLFH should be in the range of 32 to 64 and be divisible by 4.
*/
-#ifndef NFS_SMALLFH
-#define NFS_SMALLFH 64
+#ifndef NFS_MAXFHSIZE
+#define NFS_MAXFHSIZE 64
#endif
union nfsfh {
fhandle_t fh_generic;
- u_char fh_bytes[NFS_SMALLFH];
+ u_char fh_bytes[NFS_MAXFHSIZE];
};
typedef union nfsfh nfsfh_t;