summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_serv.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-01-13 23:27:58 +0000
committerphk <phk@FreeBSD.org>1996-01-13 23:27:58 +0000
commit9e14900495b009fccd80e7c2068ea6eedd558dce (patch)
treea45ad8603041d3d4de6f0ddac019214235dbdefd /sys/nfs/nfs_serv.c
parentb4cbe069b996fab93a71c0d32c7d3c678864bf5a (diff)
downloadFreeBSD-src-9e14900495b009fccd80e7c2068ea6eedd558dce.zip
FreeBSD-src-9e14900495b009fccd80e7c2068ea6eedd558dce.tar.gz
Add an option NFS_NOSERVER which saves 100K in the install kernel (or
any other kernel that uses it). Use with option NFS.
Diffstat (limited to 'sys/nfs/nfs_serv.c')
-rw-r--r--sys/nfs/nfs_serv.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 3fc96a4..2c574cac 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
- * $Id: nfs_serv.c,v 1.26 1995/12/07 12:47:25 davidg Exp $
+ * $Id: nfs_serv.c,v 1.27 1995/12/17 21:12:22 phk Exp $
*/
/*
@@ -85,21 +85,22 @@
#include <nfs/nfsm_subs.h>
#include <nfs/nqnfs.h>
+nfstype nfsv3_type[9] = { NFNON, NFREG, NFDIR, NFBLK, NFCHR, NFLNK, NFSOCK,
+ NFFIFO, NFNON };
+#ifndef NFS_NOSERVER
+nfstype nfsv2_type[9] = { NFNON, NFREG, NFDIR, NFBLK, NFCHR, NFLNK, NFNON,
+ NFCHR, NFNON };
/* Global vars */
extern u_long nfs_xdrneg1;
extern u_long nfs_false, nfs_true;
extern enum vtype nv3tov_type[8];
extern struct nfsstats nfsstats;
-nfstype nfsv2_type[9] = { NFNON, NFREG, NFDIR, NFBLK, NFCHR, NFLNK, NFNON,
- NFCHR, NFNON };
-nfstype nfsv3_type[9] = { NFNON, NFREG, NFDIR, NFBLK, NFCHR, NFLNK, NFSOCK,
- NFFIFO, NFNON };
+
int nfsrvw_procrastinate = NFS_GATHERDELAY * 1000;
int nfs_async;
SYSCTL_INT(_fs_nfs, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0, "");
-
static int nfsrv_access __P((struct vnode *,int,struct ucred *,int,
struct proc *));
static void nfsrvw_coalesce __P((struct nfsrv_descript *,
@@ -3431,3 +3432,5 @@ nfsrv_access(vp, flags, cred, rdonly, p)
return (error);
return (0);
}
+#endif /* NFS_NOSERVER */
+
OpenPOWER on IntegriCloud