diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2014-08-12 09:10:13 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2014-08-12 09:10:13 +0000 |
commit | fb86534cb16e890fad9e8af43437d488a8b0010b (patch) | |
tree | f17fd69743be9d4856935243e584be5facea6588 /sbin/geom | |
parent | 8bc5c7c0ebe0c5646cecce0574a173da6d768483 (diff) | |
download | src-fb86534cb16e890fad9e8af43437d488a8b0010b.tar.gz src-fb86534cb16e890fad9e8af43437d488a8b0010b.zip |
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
Notes
Notes:
svn path=/head/; revision=269852
Diffstat (limited to 'sbin/geom')
-rw-r--r-- | sbin/geom/class/part/gpart.8 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sbin/geom/class/part/gpart.8 b/sbin/geom/class/part/gpart.8 index 2345773305c1..236c3fe38d04 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. |