Make kern.geom.debugflags sysctl tunable from /boot/loader.conf.

It will help to debug problems when booting.

Approved by:	phk
This commit is contained in:
Pawel Jakub Dawidek 2004-09-13 14:58:27 +00:00
parent 8f6f154ee8
commit 7e8ca741ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135151

View File

@ -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, "");