Make kern.geom.part node not static. Also add CTLFLAG_TUN to the

check_integrity sysctl.

MFC after:	1 month
This commit is contained in:
ae 2012-03-19 12:57:52 +00:00
parent 3cb70b8f40
commit 1fa040c42d

View File

@ -106,12 +106,13 @@ struct g_part_alias_list {
};
SYSCTL_DECL(_kern_geom);
static SYSCTL_NODE(_kern_geom, OID_AUTO, part, CTLFLAG_RW, 0,
SYSCTL_NODE(_kern_geom, OID_AUTO, part, CTLFLAG_RW, 0,
"GEOM_PART stuff");
static u_int check_integrity = 1;
TUNABLE_INT("kern.geom.part.check_integrity", &check_integrity);
SYSCTL_UINT(_kern_geom_part, OID_AUTO, check_integrity, CTLFLAG_RW,
&check_integrity, 1, "Enable integrity checking");
SYSCTL_UINT(_kern_geom_part, OID_AUTO, check_integrity,
CTLFLAG_RW | CTLFLAG_TUN, &check_integrity, 1,
"Enable integrity checking");
/*
* The GEOM partitioning class.