summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-02-16 10:49:55 +0000
committerdfr <dfr@FreeBSD.org>1999-02-16 10:49:55 +0000
commit22ceb237f0acde5a7f56b22bcbec381eb41db3f8 (patch)
tree7ff504a77dea2abe8ecf3178beb55d9d3592a1b9 /sys/nfs
parenta90ae0fb61f0e918e3cafba8d21edfe5a29559b9 (diff)
downloadFreeBSD-src-22ceb237f0acde5a7f56b22bcbec381eb41db3f8.zip
FreeBSD-src-22ceb237f0acde5a7f56b22bcbec381eb41db3f8.tar.gz
* Change sysctl from using linker_set to construct its tree using SLISTs.
This makes it possible to change the sysctl tree at runtime. * Change KLD to find and register any sysctl nodes contained in the loaded file and to unregister them when the file is unloaded. Reviewed by: Archie Cobbs <archie@whistle.com>, Peter Wemm <peter@netplex.com.au> (well they looked at it anyway)
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_serv.c4
-rw-r--r--sys/nfs/nfs_syscalls.c4
-rw-r--r--sys/nfs/nfs_vfsops.c3
-rw-r--r--sys/nfs/nfs_vnops.c4
4 files changed, 10 insertions, 5 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 346c4fc..cb6f0e8 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95
- * $Id: nfs_serv.c,v 1.71 1998/12/08 23:11:24 eivind Exp $
+ * $Id: nfs_serv.c,v 1.72 1998/12/09 15:12:53 eivind Exp $
*/
/*
@@ -99,6 +99,8 @@ extern struct nfsstats nfsstats;
int nfsrvw_procrastinate = NFS_GATHERDELAY * 1000;
int nfsrvw_procrastinate_v3 = 0;
+SYSCTL_DECL(_vfs_nfs);
+
static int nfs_async;
SYSCTL_INT(_vfs_nfs, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0, "");
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c
index 5050ec8..c8da2db 100644
--- a/sys/nfs/nfs_syscalls.c
+++ b/sys/nfs/nfs_syscalls.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95
- * $Id: nfs_syscalls.c,v 1.44 1998/12/07 21:58:44 archie Exp $
+ * $Id: nfs_syscalls.c,v 1.45 1999/01/27 22:42:27 dillon Exp $
*/
#include <sys/param.h>
@@ -109,6 +109,8 @@ static int nfssvc_addsock __P((struct file *, struct sockaddr *,
struct proc *));
static int nfssvc_nfsd __P((struct nfsd_srvargs *,caddr_t,struct proc *));
+SYSCTL_DECL(_vfs_nfs);
+
static int nfs_privport = 0;
SYSCTL_INT(_vfs_nfs, NFS_NFSPRIVPORT, nfs_privport, CTLFLAG_RW, &nfs_privport, 0, "");
SYSCTL_INT(_vfs_nfs, OID_AUTO, gatherdelay, CTLFLAG_RW, &nfsrvw_procrastinate, 0, "");
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index 241c4f3..9b5accd 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
- * $Id: nfs_vfsops.c,v 1.80 1999/01/28 00:57:51 dillon Exp $
+ * $Id: nfs_vfsops.c,v 1.81 1999/01/28 17:32:01 dillon Exp $
*/
#include <sys/param.h>
@@ -133,7 +133,6 @@ static struct vfsops nfs_vfsops = {
nfs_vptofh,
nfs_init,
nfs_uninit,
- &sysctl___vfs_nfs
};
VFS_SET(nfs_vfsops, nfs, VFCF_NETWORK);
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 1531a71..4afb469 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
- * $Id: nfs_vnops.c,v 1.121 1999/02/13 08:01:59 dillon Exp $
+ * $Id: nfs_vnops.c,v 1.122 1999/02/13 09:47:30 dillon Exp $
*/
@@ -248,6 +248,8 @@ struct nfsmount *nfs_iodmount[NFS_MAXASYNCDAEMON];
int nfs_numasync = 0;
#define DIRHDSIZ (sizeof (struct dirent) - (MAXNAMLEN + 1))
+SYSCTL_DECL(_vfs_nfs);
+
static int nfsaccess_cache_timeout = 2;
SYSCTL_INT(_vfs_nfs, OID_AUTO, access_cache_timeout, CTLFLAG_RW,
&nfsaccess_cache_timeout, 0, "NFS ACCESS cache timeout");
OpenPOWER on IntegriCloud