From owner-svn-src-head@FreeBSD.ORG Wed Nov 19 16:23:26 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [8.8.178.116]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6AAFC59E; Wed, 19 Nov 2014 16:23:26 +0000 (UTC) Received: from butcher-nb.yandex.net (hub.freebsd.org [IPv6:2001:1900:2254:206c::16:88]) by mx2.freebsd.org (Postfix) with ESMTP id 03CF321EC; Wed, 19 Nov 2014 16:23:24 +0000 (UTC) Message-ID: <546CC3D7.9010500@FreeBSD.org> Date: Wed, 19 Nov 2014 19:22:47 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Warner Losh Subject: Re: svn commit: r274661 - in head/sys: conf geom/part modules/geom/geom_part/geom_part_bsd References: <201411181706.sAIH6eS9051888@svn.freebsd.org> <546CC245.3070700@FreeBSD.org> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BwRpQjkjEfgrDvTrebGur2A72qoHhR3Sh" Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers , Warner Losh X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 16:23:26 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --BwRpQjkjEfgrDvTrebGur2A72qoHhR3Sh Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 19.11.2014 19:20, Warner Losh wrote: >> Probably you need to use basetable->gpt_entries here instead of=20 >> MAXPARTITIONS. >=20 > I=92m having trouble connecting the dots between GPT and BSDlabels. Why= > would this field be relevant? Is it just poorly named? MAXPARTITIONS > is the number of partitions we support. It=92s always a constant. While= > there are other BSD label formats that have differing numbers, I > don=92t think gpart supports those. But as always, I=92m always on the > lookout for code improvements. BSD label supports up to 20 partitons. You can specify different number with `gpart create -n 20 -s bsd`. For such labels your code will return EINVAL. --=20 WBR, Andrey V. Elsukov --BwRpQjkjEfgrDvTrebGur2A72qoHhR3Sh 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 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJUbMPdAAoJEAHF6gQQyKF6uhgH/13V/kRtZ84NhK0+F/lL+WAj FlxmDOEtJuRwLLeOgM1NmtJ/UPl4F/8CdGGqQj/G2R9oUF/z/hNV0AqAkKlK3O+c Mt9/ITWSYbompBS1KgE51dQDGIqKmFCVDsI2I0GoxeGQvkcHHAChHfW1Fg9DG5pg EgXlh44EPuzZ65R6HdpfB2TyK37JKQSfjMwJqRNyzYxULLzcyvelr2v49SHSbI8q mqUfjHwInHueLpj5vdQin7wJR+xFbkqanKxdebUYx85aZ5m+qAJQR4cOTQvYvcxQ SwzGJ4krV3CLbwRWv16vyiS7rcA3oJSLHCBjlQCxlV+OXayXWxzJaKiq1G4Fr9o= =fsM9 -----END PGP SIGNATURE----- --BwRpQjkjEfgrDvTrebGur2A72qoHhR3Sh--