summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2014-08-12 09:10:13 +0000
committerae <ae@FreeBSD.org>2014-08-12 09:10:13 +0000
commite3be5d165dde1c298d229cda33b01b61a79763fe (patch)
treef17fd69743be9d4856935243e584be5facea6588 /sbin/geom
parentfeb26e5057d81b097df0bb4b0faaed670f996b4d (diff)
downloadFreeBSD-src-e3be5d165dde1c298d229cda33b01b61a79763fe.zip
FreeBSD-src-e3be5d165dde1c298d229cda33b01b61a79763fe.tar.gz
Add sysctl and loader tunable kern.geom.part.mbr.enforce_chs that is set
by default. It can be used to disable automatic alignment to CHS geometry, that GEOM_PART_MBR does. Reviewed by: wblock MFC after: 1 week
Diffstat (limited to 'sbin/geom')
-rw-r--r--sbin/geom/class/part/gpart.88
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/geom/class/part/gpart.8 b/sbin/geom/class/part/gpart.8
index 2345773..236c3fe 100644
--- a/sbin/geom/class/part/gpart.8
+++ b/sbin/geom/class/part/gpart.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 3, 2014
+.Dd August 12, 2014
.Dt GPART 8
.Os
.Sh NAME
@@ -1183,6 +1183,12 @@ If this variable set to 1 each component of the mirrored volume will be
present as independent partition.
.Em NOTE :
This may break a mirrored volume and lead to data damage.
+.It Va kern.geom.part.mbr.enforce_chs : No 1
+Specify how the Master Boot Record (MBR) module does alignment.
+If this variable is set to a non-zero value, the module will automatically
+recalculate the user-specified offset and size for alignment with the CHS
+geometry.
+Otherwise the values will be left unchanged.
.El
.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
OpenPOWER on IntegriCloud