From owner-freebsd-geom@FreeBSD.ORG Mon May 23 17:59:33 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74DC8106564A; Mon, 23 May 2011 17:59:33 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward1.mail.yandex.net (forward1.mail.yandex.net [77.88.46.6]) by mx1.freebsd.org (Postfix) with ESMTP id 2068C8FC13; Mon, 23 May 2011 17:59:32 +0000 (UTC) Received: from smtp3.mail.yandex.net (smtp3.mail.yandex.net [77.88.46.103]) by forward1.mail.yandex.net (Yandex) with ESMTP id 463761242BCA; Mon, 23 May 2011 21:59:29 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1306173569; bh=8SYN+FRARwtBK2sgwU9gakU6vLfG4tz7yoyu+vLQJhA=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=I+oHUWwHQUEFWKTWV+SWS3ejv5TnzyH6gcpB2K2PVYpaNQQ7Kxz10R8cRynVQRfTQ HSp9ywFyPNgiT3tCgOy+vjVXPZ4zhaoiu03haj72XX1L3BEMChjRCRruH08UYpcm4s LBLKZEtuBTdjS2g74VCWvy/gkuzYWXur0uH9H9jU= Received: from [178.141.6.24] (dynamic-178-141-6-24.kirov.comstar-r.ru [178.141.6.24]) by smtp3.mail.yandex.net (Yandex) with ESMTPSA id 999C769800A8; Mon, 23 May 2011 21:59:28 +0400 (MSD) Message-ID: <4DDAA07B.9030004@yandex.ru> Date: Mon, 23 May 2011 21:59:23 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: Warner Losh References: <4DDA2F0B.2040203@yandex.ru> <9ED563AB-7B35-40F4-A33E-015317858401@bsdimp.com> In-Reply-To: <9ED563AB-7B35-40F4-A33E-015317858401@bsdimp.com> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDBA06A23D48A1203A1B5BF19" X-Yandex-Spam: 1 Cc: freebsd-geom@freebsd.org, Warner Losh , Poul-Henning Kamp , Marcel Moolenaar , Marcel Moolenaar Subject: Re: [RFC] Remove requirement of alignment to track from MBR scheme X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 17:59:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDBA06A23D48A1203A1B5BF19 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 23.05.2011 21:38, Warner Losh wrote: > I'm all for carefully moving forward. There were parts of the patch > that seemed to be over-reaching. >=20 > Personally, I'd just do something like the following since it > reflects what others do and implements the de-facto meaning of the > MBR: >=20 > Index: sys/geom/part/g_part_mbr.c=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 > --- sys/geom/part/g_part_mbr.c (revision 222183) +++ > sys/geom/part/g_part_mbr.c (working copy) @@ -473,7 +473,7 @@ >=20 > basetable->gpt_entries =3D NDOSPART; basetable->gpt_first =3D > basetable->gpt_sectors; - basetable->gpt_last =3D msize - (msize % > basetable->gpt_sectors) - 1; + basetable->gpt_last =3D msize - 1; There was report with different problem, the user created a partition that is aligned to 4KB sector size and it starts from the inside of first track, i.e. start offset < 63. And as he said, he did use sysinstall(8) for partitioning. --=20 WBR, Andrey V. Elsukov --------------enigDBA06A23D48A1203A1B5BF19 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJN2qB/AAoJEAHF6gQQyKF6HogH/3PaIT3CV6RofFope6Zjll+P XeAmLIkYvIVklPrXu34PCr+efhQ1gF0RjEttp1IvuF1KZPiGg06aU46On9vkUX7q Mn9DpO1eZSV0SwGdD332hRsN97OeU4zhh+QVwzPJLJ8ohA79BBFPmhAsqLig0hkm 1eQZNexsb4n5+BbWB681aZ/RCT9X8StoUeuOxsdFtnOvlEeZOGSRXESHc4Sgbl1x X8GfmDxSswQJHpumzwZZFaoJ2w4802pQzdxBBwjoR7M1I4JB/iAyAl2uRaS0hEDs 1CtluiLtItHps1z+PMqtua/he61k4eoqgtgVygoGKkRd3pPPoqiwD1+I1vPMfdo= =D8nU -----END PGP SIGNATURE----- --------------enigDBA06A23D48A1203A1B5BF19--