From fc21f40567ac7485e9e987cf5a539bd0d11c7155 Mon Sep 17 00:00:00 2001 From: gjb Date: Fri, 27 Jun 2014 22:05:21 +0000 Subject: Revert r267961, r267973: These changes prevent sysctl(8) from returning proper output, such as: 1) no output from sysctl(8) 2) erroneously returning ENOMEM with tools like truss(1) or uname(1) truss: can not get etype: Cannot allocate memory --- sys/geom/geom_kern.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/geom/geom_kern.c') diff --git a/sys/geom/geom_kern.c b/sys/geom/geom_kern.c index 3559daf..79afb14 100644 --- a/sys/geom/geom_kern.c +++ b/sys/geom/geom_kern.c @@ -212,7 +212,8 @@ SYSCTL_PROC(_kern_geom, OID_AUTO, conftxt, CTLTYPE_STRING|CTLFLAG_RD, 0, 0, sysctl_kern_geom_conftxt, "", "Dump the GEOM config in txt"); -SYSCTL_INT(_kern_geom, OID_AUTO, debugflags, CTLFLAG_RWTUN, +TUNABLE_INT("kern.geom.debugflags", &g_debugflags); +SYSCTL_INT(_kern_geom, OID_AUTO, debugflags, CTLFLAG_RW, &g_debugflags, 0, "Set various trace levels for GEOM debugging"); SYSCTL_INT(_kern_geom, OID_AUTO, notaste, CTLFLAG_RW, -- cgit v1.1