summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_kern.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-09-13 14:58:27 +0000
committerpjd <pjd@FreeBSD.org>2004-09-13 14:58:27 +0000
commita5693287e110eb43ec8e5c95e9f77f3c6355b060 (patch)
tree6b6482c3239d78e09def0381d8ad924955032b68 /sys/geom/geom_kern.c
parent260940d35ab13d5330c7b5b4b0915fc0e9b2f20d (diff)
downloadFreeBSD-src-a5693287e110eb43ec8e5c95e9f77f3c6355b060.zip
FreeBSD-src-a5693287e110eb43ec8e5c95e9f77f3c6355b060.tar.gz
Make kern.geom.debugflags sysctl tunable from /boot/loader.conf.
It will help to debug problems when booting. Approved by: phk
Diffstat (limited to 'sys/geom/geom_kern.c')
-rw-r--r--sys/geom/geom_kern.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_kern.c b/sys/geom/geom_kern.c
index a346b6a..762a1fd 100644
--- a/sys/geom/geom_kern.c
+++ b/sys/geom/geom_kern.c
@@ -220,6 +220,7 @@ SYSCTL_PROC(_kern_geom, OID_AUTO, conftxt, CTLTYPE_STRING|CTLFLAG_RD,
0, 0, sysctl_kern_geom_conftxt, "",
"Dump the GEOM config in txt");
+TUNABLE_INT("kern.geom.debugflags", &g_debugflags);
SYSCTL_INT(_kern_geom, OID_AUTO, debugflags, CTLFLAG_RW,
&g_debugflags, 0, "");
OpenPOWER on IntegriCloud