cvs commit: src/sys/conf NOTES files options src/sys/geom/part g_part.c g_part.h g_part_bsd.c src/sys/ia64/conf DEFAULTS

Marcel Moolenaar xcllnt at mac.com
Thu Dec 6 10:06:09 PST 2007


On Dec 6, 2007, at 1:21 AM, John Baldwin wrote:

> So one issue with gpart is it doesn't handle attribute requests yet,  
> so it
> doesn't have the feature where geom_bsd only attaches when a parent  
> partition
> has the right type.

It supports attributes, but not the ones used by other
partitioning classes, because those are not needed in
the end.

> I ran into this for GPT testing where due to the way we
> align disks at work for RAID striping, the beignning of my GPT slice  
> for /
> had a BSD label at the start, so I would end up with bogus /dev/ad0p1a
> devices and scary warnings in dmesg about a busted BSD label because  
> offsets
> didn't match up.  I fixed this in 6.x by making GEOM_GPT export its  
> UUID via
> an attr and having geom_bsd check that like it does now for  
> MBR::type and
> PC98::type.  You will need to handle this in gpart as well.

It's all part of the plan. I first go wide to make sure
I cover all the partitioning schemes and work out the
quirks with them, then I'll add boot code support, flags
(i.e. for the active MBR partition) and partition type
enforcement.

At this time gpart already checks the partition type for
kernel dumps, because that was easy :-)

-- 
Marcel Moolenaar
xcllnt at mac.com




More information about the cvs-src mailing list