From 092d5777fd65c5117ec8b02375cc0ce383a312fa Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 2 Oct 2002 07:51:02 +0000 Subject: [PATCH] Move GEOM's sysctls under kern.geom. Sponsored by: DARPA & NAI Labs. --- sys/geom/geom_kern.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/sys/geom/geom_kern.c b/sys/geom/geom_kern.c index b3c6f853ebbb..71ecbfff5ed7 100644 --- a/sys/geom/geom_kern.c +++ b/sys/geom/geom_kern.c @@ -162,7 +162,7 @@ g_init(void) } static int -sysctl_debug_geomdot(SYSCTL_HANDLER_ARGS) +sysctl_kern_geom_dotconf(SYSCTL_HANDLER_ARGS) { int i, error; struct sbuf *sb; @@ -174,12 +174,8 @@ sysctl_debug_geomdot(SYSCTL_HANDLER_ARGS) return (error); } -SYSCTL_PROC(_debug, OID_AUTO, geomdot, CTLTYPE_STRING|CTLFLAG_RD, - 0, 0, sysctl_debug_geomdot, "A", - "Dump the GEOM config"); - static int -sysctl_debug_geomconf(SYSCTL_HANDLER_ARGS) +sysctl_kern_geom_xmlconf(SYSCTL_HANDLER_ARGS) { int i, error; struct sbuf *sb; @@ -191,11 +187,17 @@ sysctl_debug_geomconf(SYSCTL_HANDLER_ARGS) return (error); } -SYSCTL_PROC(_debug, OID_AUTO, geomconf, CTLTYPE_STRING|CTLFLAG_RD, - 0, 0, sysctl_debug_geomconf, "A", +SYSCTL_NODE(_kern, OID_AUTO, geom, CTLFLAG_RW, 0, "GEOMetry management"); + +SYSCTL_PROC(_kern_geom, OID_AUTO, xmlconf, CTLTYPE_STRING|CTLFLAG_RD, + 0, 0, sysctl_kern_geom_xmlconf, "A", "Dump the GEOM config"); -SYSCTL_INT(_debug, OID_AUTO, geomdebugflags, CTLTYPE_INT|CTLFLAG_RW, +SYSCTL_PROC(_kern_geom, OID_AUTO, dotconf, CTLTYPE_STRING|CTLFLAG_RD, + 0, 0, sysctl_kern_geom_dotconf, "A", + "Dump the GEOM config"); + +SYSCTL_INT(_kern_geom, OID_AUTO, debugflags, CTLTYPE_INT|CTLFLAG_RW, &g_debugflags, 0, ""); SYSCTL_INT(_debug_sizeof, OID_AUTO, g_class, CTLTYPE_INT|CTLFLAG_RD,