summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-08-08 21:44:45 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-08-08 21:44:45 +0000
commit4773e0896ab33f317a749665b92b994afa4c2f1d (patch)
tree9e895aca14a9f706b81c77dfb78c3599dbdbe0b1 /sys/nfs
parent52c39a67f6951f85a0153328d55733d068d4123b (diff)
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@
Diffstat (limited to 'sys/nfs')
-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;