diff options
author | 1996-09-21 11:06:08 +0000 | |
---|---|---|
committer | 1996-09-21 11:06:08 +0000 | |
commit | 18770882b7796e244f61211fa8b296891a3cd0ea (patch) | |
tree | c11d21c81e9f5ec4b63580529cb2f48656347f9e /sys/nfs/nfs_subs.c | |
parent | standardize the dmesg output (diff) | |
download | wireguard-openbsd-18770882b7796e244f61211fa8b296891a3cd0ea.tar.xz wireguard-openbsd-18770882b7796e244f61211fa8b296891a3cd0ea.zip |
fix NFSSERVER w/o NFSCLIENT; netbsd pr#1780, cgd@netbsd (yes, a 10month
old PR and the fix is mostly unchanged).
Diffstat (limited to 'sys/nfs/nfs_subs.c')
-rw-r--r-- | sys/nfs/nfs_subs.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 5b7414c5c65..379a2332de8 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_subs.c,v 1.10 1996/07/27 11:09:39 deraadt Exp $ */ +/* $OpenBSD: nfs_subs.c,v 1.11 1996/09/21 11:06:19 deraadt Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -1116,17 +1116,9 @@ nfs_init() nfs_ticks = (hz * NFS_TICKINTVL + 500) / 1000; if (nfs_ticks < 1) nfs_ticks = 1; -#ifdef NFSCLIENT - /* Ensure async daemons disabled */ - for (i = 0; i < NFS_MAXASYNCDAEMON; i++) - nfs_iodwant[i] = (struct proc *)0; - TAILQ_INIT(&nfs_bufq); - nfs_nhinit(); /* Init the nfsnode table */ -#endif /* NFSCLIENT */ #ifdef NFSSERVER nfsrv_init(0); /* Init server data structures */ nfsrv_initcache(); /* Init the server request cache */ -#endif /* NFSSERVER */ /* * Initialize the nqnfs server stuff. @@ -1138,6 +1130,7 @@ nfs_init() CIRCLEQ_INIT(&nqtimerhead); nqfhhashtbl = hashinit(NQLCHSZ, M_NQLEASE, &nqfhhash); } +#endif /* NFSSERVER */ /* * Initialize reply list and start timer @@ -1147,6 +1140,18 @@ nfs_init() } #ifdef NFSCLIENT +void +nfs_vfs_init() +{ + register int i; + + /* Ensure async daemons disabled */ + for (i = 0; i < NFS_MAXASYNCDAEMON; i++) + nfs_iodwant[i] = (struct proc *)0; + TAILQ_INIT(&nfs_bufq); + nfs_nhinit(); /* Init the nfsnode table */ +} + /* * Attribute cache routines. * nfs_loadattrcache() - loads or updates the cache contents from attributes |