diff options
author | phk <phk@FreeBSD.org> | 2002-10-02 07:51:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-02 07:51:02 +0000 |
commit | 097d50c720398a489d491f2afd0e1d2e90541a68 (patch) | |
tree | 9d7ef43e50691dcdd48ccb92922c55c3a2ed9f3c | |
parent | 384c8f8fcd9e7fdacef20400c61698f841c5056a (diff) | |
download | FreeBSD-src-097d50c720398a489d491f2afd0e1d2e90541a68.zip FreeBSD-src-097d50c720398a489d491f2afd0e1d2e90541a68.tar.gz |
Move GEOM's sysctls under kern.geom.
Sponsored by: DARPA & NAI Labs.
-rw-r--r-- | sys/geom/geom_kern.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/sys/geom/geom_kern.c b/sys/geom/geom_kern.c index b3c6f85..71ecbff 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_PROC(_kern_geom, OID_AUTO, dotconf, CTLTYPE_STRING|CTLFLAG_RD, + 0, 0, sysctl_kern_geom_dotconf, "A", "Dump the GEOM config"); -SYSCTL_INT(_debug, OID_AUTO, geomdebugflags, CTLTYPE_INT|CTLFLAG_RW, +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, |