From owner-freebsd-geom@FreeBSD.ORG Mon Oct 20 19:09:39 2008 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 7D4501065674 for ; Mon, 20 Oct 2008 19:09:39 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout014.mac.com (asmtpout014.mac.com [17.148.16.89]) by mx1.freebsd.org (Postfix) with ESMTP id 67B748FC14 for ; Mon, 20 Oct 2008 19:09:39 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp014.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K9100C3KX82D220@asmtp014.mac.com> for freebsd-geom@freebsd.org; Mon, 20 Oct 2008 12:09:39 -0700 (PDT) Message-id: From: Marcel Moolenaar To: =?ISO-8859-1?Q?Marius_N=FCnnerich?= In-reply-to: Content-transfer-encoding: quoted-printable Date: Mon, 20 Oct 2008 12:09:38 -0700 References: X-Mailer: Apple Mail (2.929.2) Cc: freebsd-geom@freebsd.org Subject: Re: How to get the partition number of a GPT partition from the geom? 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, 20 Oct 2008 19:09:39 -0000 On Oct 20, 2008, at 10:55 AM, Marius N=FCnnerich wrote: > A new question popped up: > Is it possible to test the a geom of class PART is of "subclass" GPT? Not easily from the kernel now, but it's always possible to make certain bits of information more readily available for use inside the kernel. It seems to make sense to have GEOMs export label information through g_getattr(). This allows the label to come from every GEOM that possibly can have labels, without the need to add explicit support... --=20 Marcel Moolenaar xcllnt@mac.com