Turn off kern.geom.part.mbr.enforce_chs by default.

This commit is contained in:
Andrey V. Elsukov 2014-08-12 10:31:31 +00:00
parent a327e0b08a
commit 36b16d1f7d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269857
2 changed files with 3 additions and 3 deletions

View File

@ -1176,7 +1176,7 @@ 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
.It Va kern.geom.part.mbr.enforce_chs : No 0
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

View File

@ -53,9 +53,9 @@ SYSCTL_DECL(_kern_geom_part);
static SYSCTL_NODE(_kern_geom_part, OID_AUTO, mbr, CTLFLAG_RW, 0,
"GEOM_PART_MBR Master Boot Record");
static u_int enforce_chs = 1;
static u_int enforce_chs = 0;
SYSCTL_UINT(_kern_geom_part_mbr, OID_AUTO, enforce_chs,
CTLFLAG_RWTUN, &enforce_chs, 1, "Enforce alignment to CHS addressing");
CTLFLAG_RWTUN, &enforce_chs, 0, "Enforce alignment to CHS addressing");
#define MBRSIZE 512