From owner-freebsd-geom@FreeBSD.ORG Thu Mar 26 16:06:05 2009 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 181FB106564A for ; Thu, 26 Mar 2009 16:06:05 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout018.mac.com (asmtpout018.mac.com [17.148.16.93]) by mx1.freebsd.org (Postfix) with ESMTP id 023908FC08 for ; Thu, 26 Mar 2009 16:06:04 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from agonzales-t60.jnpr.net ([66.129.224.36]) by asmtp018.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KH400A9XFE4PH90@asmtp018.mac.com> for freebsd-geom@freebsd.org; Thu, 26 Mar 2009 09:06:04 -0700 (PDT) Message-id: <1FA0EF30-7FCC-4384-8151-36843EFBE01D@mac.com> From: Marcel Moolenaar To: "Bjoern A. Zeeb" In-reply-to: <20090326062604.X67075@maildrop.int.zabbadoz.net> Content-transfer-encoding: quoted-printable Date: Thu, 26 Mar 2009 09:04:42 -0700 References: <20090325214318.Q67075@maildrop.int.zabbadoz.net> <20090326062604.X67075@maildrop.int.zabbadoz.net> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-geom@freebsd.org Subject: Re: gpart on top of eli inside a slice is not working 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: Thu, 26 Mar 2009 16:06:05 -0000 On Mar 25, 2009, at 11:29 PM, Bjoern A. Zeeb wrote: > On Wed, 25 Mar 2009, Marcel Moolenaar wrote: > >> >> On Mar 25, 2009, at 2:57 PM, Bjoern A. Zeeb wrote: >> >>> Here=B4s a script to reproduce this on head. >> >> First of all: exemplary problem reporting! >> >>> Any ideas? >> >> The probe method of the GPT scheme explicitly disallows nesting. >> This is inconsistent with the create method, which happily allows >> creating a GPT underneath a MBR. >> >> The bug is in the create method: GPT cannot be created inside a >> MBR slice (or any other partioning for that matter). I'll fix >> that shortly. > > Well technically it is created inside some random garbage from eli and > not directly inside the MBR slice. When I refer to nesting, I mean the on-disk layout. It's almost meaningless to talk in terms of GEOM nesting, because you can't assume anything. Thus: the fact that geli is in between the two gpart instances is irrelevant. > So the only possible solutions for those would be: > 1) Somehow convert the entire disk to part and then exposing the 3 > freebsd-* partitions and have a dedicated eli inside each. I don't understand what you're trying to say. Can you elaborate? > 2) try (and stick with) bsdlabel on top of the eli inside the mbr > slice? A different scheme, one that is allowed to be nested (again, from an on-disk layout PoV), is the right thing to do. > So can you explain why there is the restriction that part cannot be > used inside a MBR slice or rather somewhere on top of such? There's no such restriction in gpart. If there was, then gpart would not be able to implement the BSD scheme or the EBR scheme. FYI, --=20 Marcel Moolenaar xcllnt@mac.com