diff options
author | ae <ae@FreeBSD.org> | 2012-03-19 12:57:52 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2012-03-19 12:57:52 +0000 |
commit | 1fa040c42d90b4ce4b0c7a0d816d71d4a70a4a31 (patch) | |
tree | 38fa9fda23b3f8b6a57402f3d2de359131da1c16 /sys/geom/part | |
parent | 3cb70b8f4072fdd502498c3b185e78bf54bb81de (diff) | |
download | FreeBSD-src-1fa040c42d90b4ce4b0c7a0d816d71d4a70a4a31.zip FreeBSD-src-1fa040c42d90b4ce4b0c7a0d816d71d4a70a4a31.tar.gz |
Make kern.geom.part node not static. Also add CTLFLAG_TUN to the
check_integrity sysctl.
MFC after: 1 month
Diffstat (limited to 'sys/geom/part')
-rw-r--r-- | sys/geom/part/g_part.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index c507972..4fdc482 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -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. |