summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_init.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-03-02 11:06:22 +0000
committerbde <bde@FreeBSD.org>1997-03-02 11:06:22 +0000
commit6e3189294315b7854f8329d000a4e48bcada2ef8 (patch)
treef65e4e00b905c8491bd65f99e904e73db2688349 /sys/kern/vfs_init.c
parentc82a3c371984c4c875d049498978ca0131c10dc8 (diff)
downloadFreeBSD-src-6e3189294315b7854f8329d000a4e48bcada2ef8.zip
FreeBSD-src-6e3189294315b7854f8329d000a4e48bcada2ef8.tar.gz
Moved vfs sysctls to where Lite2 put them. No code changes yet.
Diffstat (limited to 'sys/kern/vfs_init.c')
-rw-r--r--sys/kern/vfs_init.c61
1 files changed, 1 insertions, 60 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index 21cdec7..21061e8 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_init.c 8.3 (Berkeley) 1/4/94
- * $Id$
+ * $Id: vfs_init.c,v 1.24 1997/02/22 09:39:32 peter Exp $
*/
@@ -53,8 +53,6 @@
#include <sys/errno.h>
#include <sys/malloc.h>
#include <sys/proc.h>
-#include <vm/vm.h>
-#include <sys/sysctl.h>
static void vfs_op_init __P((void));
@@ -277,63 +275,6 @@ vfsinit(dummy)
* kernel related system variables.
*/
-static int
-sysctl_vfs_conf SYSCTL_HANDLER_ARGS
-{
- int error;
- struct vfsconf *vfsp;
-
- if (req->newptr)
- return EINVAL;
- for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next) {
- error = SYSCTL_OUT(req, vfsp, sizeof *vfsp);
- if (error)
- return error;
- }
- return 0;
-}
-
-SYSCTL_PROC(_vfs, VFS_VFSCONF, vfsconf, CTLTYPE_OPAQUE|CTLFLAG_RD,
- 0, 0, sysctl_vfs_conf, "S,vfsconf", "");
-
-#ifndef NO_COMPAT_PRELITE2
-
-#define OVFS_MAXNAMELEN 32
-struct ovfsconf {
- void *vfc_vfsops;
- char vfc_name[OVFS_MAXNAMELEN];
- int vfc_index;
- int vfc_refcount;
- int vfc_flags;
-};
-
-static int
-sysctl_ovfs_conf SYSCTL_HANDLER_ARGS
-{
- int error;
- struct vfsconf *vfsp;
-
- if (req->newptr)
- return EINVAL;
- for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next) {
- struct ovfsconf ovfs;
- ovfs.vfc_vfsops = vfsp->vfc_vfsops; /* XXX used as flag */
- strcpy(ovfs.vfc_name, vfsp->vfc_name);
- ovfs.vfc_index = vfsp->vfc_typenum;
- ovfs.vfc_refcount = vfsp->vfc_refcount;
- ovfs.vfc_flags = vfsp->vfc_flags;
- error = SYSCTL_OUT(req, &ovfs, sizeof ovfs);
- if (error)
- return error;
- }
- return 0;
-}
-
-SYSCTL_PROC(_vfs, VFS_OVFSCONF, ovfsconf, CTLTYPE_OPAQUE|CTLFLAG_RD,
- 0, 0, sysctl_ovfs_conf, "S,ovfsconf", "");
-
-#endif /* !NO_COMPAT_PRELITE2 */
-
/*
* This goop is here to support a loadable NFS module... grumble...
*/
OpenPOWER on IntegriCloud