From 21e0797227c44d200e22cea7085cff9ba114b703 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 30 Apr 1996 23:23:09 +0000 Subject: [PATCH] Fixed nfs sysctls. They missed out on the fs -> vfs name changes from Lite2. This broke nfsstat. --- sys/nfs/nfs_serv.c | 4 ++-- sys/nfs/nfs_vfsops.c | 6 +++--- sys/nfsclient/nfs_vfsops.c | 6 +++--- sys/nfsserver/nfs_serv.c | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index 2c574cace984..e7aba253e471 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.27 1995/12/17 21:12:22 phk Exp $ + * $Id: nfs_serv.c,v 1.28 1996/01/13 23:27:48 phk Exp $ */ /* @@ -99,7 +99,7 @@ extern struct nfsstats nfsstats; int nfsrvw_procrastinate = NFS_GATHERDELAY * 1000; int nfs_async; -SYSCTL_INT(_fs_nfs, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0, ""); +SYSCTL_INT(_vfs_nfs, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0, ""); static int nfsrv_access __P((struct vnode *,int,struct ucred *,int, struct proc *)); diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index e19c8e61753a..421de7c5723c 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94 - * $Id: nfs_vfsops.c,v 1.26 1995/12/28 21:56:49 phk Exp $ + * $Id: nfs_vfsops.c,v 1.27 1996/02/13 18:16:29 wollman Exp $ */ #include @@ -76,8 +76,8 @@ extern int nfs_mountroot __P((void)); extern int nfs_ticks; struct nfsstats nfsstats; -SYSCTL_NODE(_fs, MOUNT_NFS, nfs, CTLFLAG_RW, 0, "NFS filesystem"); -SYSCTL_STRUCT(_fs_nfs, NFS_NFSSTATS, nfsstats, CTLFLAG_RD, +SYSCTL_NODE(_vfs, MOUNT_NFS, nfs, CTLFLAG_RW, 0, "NFS filesystem"); +SYSCTL_STRUCT(_vfs_nfs, NFS_NFSSTATS, nfsstats, CTLFLAG_RD, &nfsstats, nfsstats, ""); static int nfs_iosize __P((struct nfsmount *nmp)); diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index e19c8e61753a..421de7c5723c 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94 - * $Id: nfs_vfsops.c,v 1.26 1995/12/28 21:56:49 phk Exp $ + * $Id: nfs_vfsops.c,v 1.27 1996/02/13 18:16:29 wollman Exp $ */ #include @@ -76,8 +76,8 @@ extern int nfs_mountroot __P((void)); extern int nfs_ticks; struct nfsstats nfsstats; -SYSCTL_NODE(_fs, MOUNT_NFS, nfs, CTLFLAG_RW, 0, "NFS filesystem"); -SYSCTL_STRUCT(_fs_nfs, NFS_NFSSTATS, nfsstats, CTLFLAG_RD, +SYSCTL_NODE(_vfs, MOUNT_NFS, nfs, CTLFLAG_RW, 0, "NFS filesystem"); +SYSCTL_STRUCT(_vfs_nfs, NFS_NFSSTATS, nfsstats, CTLFLAG_RD, &nfsstats, nfsstats, ""); static int nfs_iosize __P((struct nfsmount *nmp)); diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index 2c574cace984..e7aba253e471 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94 - * $Id: nfs_serv.c,v 1.27 1995/12/17 21:12:22 phk Exp $ + * $Id: nfs_serv.c,v 1.28 1996/01/13 23:27:48 phk Exp $ */ /* @@ -99,7 +99,7 @@ extern struct nfsstats nfsstats; int nfsrvw_procrastinate = NFS_GATHERDELAY * 1000; int nfs_async; -SYSCTL_INT(_fs_nfs, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0, ""); +SYSCTL_INT(_vfs_nfs, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0, ""); static int nfsrv_access __P((struct vnode *,int,struct ucred *,int, struct proc *));