From owner-freebsd-geom@FreeBSD.ORG Mon Oct 20 19:45:08 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 B7A571065670 for ; Mon, 20 Oct 2008 19:45:08 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 5561B8FC31 for ; Mon, 20 Oct 2008 19:45:08 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: by wa-out-1112.google.com with SMTP id n4so1102561wag.27 for ; Mon, 20 Oct 2008 12:45:07 -0700 (PDT) Received: by 10.114.201.1 with SMTP id y1mr5738614waf.93.1224531907059; Mon, 20 Oct 2008 12:45:07 -0700 (PDT) Received: by 10.115.89.3 with HTTP; Mon, 20 Oct 2008 12:45:07 -0700 (PDT) Message-ID: Date: Mon, 20 Oct 2008 21:45:07 +0200 From: "=?ISO-8859-1?Q?Marius_N=FCnnerich?=" To: "Marcel Moolenaar" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: 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:45:08 -0000 Hi Marcel, thanks for your reply. On Mon, Oct 20, 2008 at 9:09 PM, Marcel Moolenaar wrote: > > 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... That would certainly be a clean thing to do. I'll take a look into g_getattr() now, thanks.