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

Marcel Moolenaar xcllnt at mac.com
Mon Oct 20 19:09:39 UTC 2008


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...

-- 
Marcel Moolenaar
xcllnt at mac.com





More information about the freebsd-geom mailing list