How to get the partition number of a GPT partition from the geom?

Marius Nünnerich marius at nuenneri.ch
Mon Oct 20 19:45:08 UTC 2008


Hi Marcel,

thanks for your reply.

On Mon, Oct 20, 2008 at 9:09 PM, Marcel Moolenaar <xcllnt at 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.


More information about the freebsd-geom mailing list