mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Allow to configure debug level from /boot/loader.conf.
This commit is contained in:
parent
0d86d31bba
commit
6d7b8aecd3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134528
@ -45,6 +45,7 @@ static MALLOC_DEFINE(M_CONCAT, "concat data", "GEOM_CONCAT Data");
|
||||
SYSCTL_DECL(_kern_geom);
|
||||
SYSCTL_NODE(_kern_geom, OID_AUTO, concat, CTLFLAG_RW, 0, "GEOM_CONCAT stuff");
|
||||
static u_int g_concat_debug = 0;
|
||||
TUNABLE_INT("kern.geom.concat.debug", &g_concat_debug);
|
||||
SYSCTL_UINT(_kern_geom_concat, OID_AUTO, debug, CTLFLAG_RW, &g_concat_debug, 0,
|
||||
"Debug level");
|
||||
|
||||
|
@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$");
|
||||
SYSCTL_DECL(_kern_geom);
|
||||
SYSCTL_NODE(_kern_geom, OID_AUTO, label, CTLFLAG_RW, 0, "GEOM_LABEL stuff");
|
||||
u_int g_label_debug = 0;
|
||||
TUNABLE_INT("kern.geom.label.debug", &g_label_debug);
|
||||
SYSCTL_UINT(_kern_geom_label, OID_AUTO, debug, CTLFLAG_RW, &g_label_debug, 0,
|
||||
"Debug level");
|
||||
|
||||
|
@ -51,6 +51,7 @@ static MALLOC_DEFINE(M_MIRROR, "mirror data", "GEOM_MIRROR Data");
|
||||
SYSCTL_DECL(_kern_geom);
|
||||
SYSCTL_NODE(_kern_geom, OID_AUTO, mirror, CTLFLAG_RW, 0, "GEOM_MIRROR stuff");
|
||||
u_int g_mirror_debug = 0;
|
||||
TUNABLE_INT("kern.geom.mirror.debug", &g_mirror_debug);
|
||||
SYSCTL_UINT(_kern_geom_mirror, OID_AUTO, debug, CTLFLAG_RW, &g_mirror_debug, 0,
|
||||
"Debug level");
|
||||
static u_int g_mirror_timeout = 8;
|
||||
|
@ -51,6 +51,7 @@ static MALLOC_DEFINE(M_RAID3, "raid3 data", "GEOM_RAID3 Data");
|
||||
SYSCTL_DECL(_kern_geom);
|
||||
SYSCTL_NODE(_kern_geom, OID_AUTO, raid3, CTLFLAG_RW, 0, "GEOM_RAID3 stuff");
|
||||
u_int g_raid3_debug = 0;
|
||||
TUNABLE_INT("kern.geom.raid3.debug", &g_raid3_debug);
|
||||
SYSCTL_UINT(_kern_geom_raid3, OID_AUTO, debug, CTLFLAG_RW, &g_raid3_debug, 0,
|
||||
"Debug level");
|
||||
static u_int g_raid3_timeout = 8;
|
||||
|
@ -69,6 +69,7 @@ struct g_class g_stripe_class = {
|
||||
SYSCTL_DECL(_kern_geom);
|
||||
SYSCTL_NODE(_kern_geom, OID_AUTO, stripe, CTLFLAG_RW, 0, "GEOM_STRIPE stuff");
|
||||
static u_int g_stripe_debug = 0;
|
||||
TUNABLE_INT("kern.geom.stripe.debug", &g_stripe_debug);
|
||||
SYSCTL_UINT(_kern_geom_stripe, OID_AUTO, debug, CTLFLAG_RW, &g_stripe_debug, 0,
|
||||
"Debug level");
|
||||
static int g_stripe_fast = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user