Date: Mon, 20 Oct 2008 22:21:38 +0200 From: "=?ISO-8859-1?Q?Marius_N=FCnnerich?=" <marius@nuenneri.ch> To: "Marcel Moolenaar" <xcllnt@mac.com> Cc: freebsd-geom@freebsd.org Subject: Re: How to get the partition number of a GPT partition from the geom? Message-ID: <b649e5e0810201321q47d104d1x8f13698941c5423@mail.gmail.com> In-Reply-To: <b649e5e0810201245v297912bai5128ed0e49f86404@mail.gmail.com> References: <b649e5e0810191537s3b505c5cke7c11e2677f2a294@mail.gmail.com> <b649e5e0810201055s27adb3a9i836251d943e1b475@mail.gmail.com> <B09DF01A-C749-479F-9C05-CA137344325B@mac.com> <b649e5e0810201245v297912bai5128ed0e49f86404@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 20, 2008 at 9:45 PM, Marius Nünnerich <marius@nuenneri.ch> wrote: > Hi Marcel, > > thanks for your reply. > > On Mon, Oct 20, 2008 at 9:09 PM, Marcel Moolenaar <xcllnt@mac.com> wrote: >> >> On Oct 20, 2008, at 10:55 AM, Marius Nünnerich 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. Hmm, this would not really help for GPT, since I would also like to have the partition uuid, so another attr would be needed. BIO_GETATTR is handled in g_part.c so the specific implementations never see the request. For example MBR has no label or uuid so it doesn't make sense to ask it for one. Is there some documentation why gpart was started and what it's main advantages are over the old style?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b649e5e0810201321q47d104d1x8f13698941c5423>
