From owner-svn-src-all@FreeBSD.ORG Tue Aug 12 10:31:32 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E356C08 for ; Tue, 12 Aug 2014 10:31:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 44AFA27FB for ; Tue, 12 Aug 2014 10:31:32 +0000 (UTC) Received: from ae (uid 1226) (envelope-from ae@FreeBSD.org) id 6a65 by svn.freebsd.org (DragonFly Mail Agent v0.9+); Tue, 12 Aug 2014 10:31:32 +0000 From: Andrey V. Elsukov Date: Tue, 12 Aug 2014 10:31:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269857 - in head: sbin/geom/class/part sys/geom/part X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e9ed04.6a65.3bc68d43@svn.freebsd.org> X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 10:31:32 -0000 Author: ae Date: Tue Aug 12 10:31:31 2014 New Revision: 269857 URL: http://svnweb.freebsd.org/changeset/base/269857 Log: Turn off kern.geom.part.mbr.enforce_chs by default. Modified: head/sbin/geom/class/part/gpart.8 head/sys/geom/part/g_part_mbr.c Modified: head/sbin/geom/class/part/gpart.8 ============================================================================== --- head/sbin/geom/class/part/gpart.8 Tue Aug 12 10:22:46 2014 (r269856) +++ head/sbin/geom/class/part/gpart.8 Tue Aug 12 10:31:31 2014 (r269857) @@ -1176,7 +1176,7 @@ If this variable set to 1 each component 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 Modified: head/sys/geom/part/g_part_mbr.c ============================================================================== --- head/sys/geom/part/g_part_mbr.c Tue Aug 12 10:22:46 2014 (r269856) +++ head/sys/geom/part/g_part_mbr.c Tue Aug 12 10:31:31 2014 (r269857) @@ -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