g_part partition tool -- some logistic questions

Marcel Moolenaar xcllnt at mac.com
Sat Feb 10 18:32:52 UTC 2007

On Feb 9, 2007, at 3:05 PM, Poul-Henning Kamp wrote:

> If you have bsd(mirror(ad0,ad1)), then the BSD parts should
> be more desirable than the mirror or the disks.
> If on the other hand you have mirror(bsd(ad0),bsd(ad1)), then
> the mirror should be more desirable than the bsd's and the disks.

Actually, when you have mirror(bsd(ad0),bsd(ad1)) then
ad0 and ad1 are the ones I want. But if you have
bsd(mirror(ad0,ad1)), then I want the mirror. The
reason is that bsd is a partitioning scheme and since
I'm writing a partitioning tool, I'm working on the
geom that's being partitioned. In an ideal world all
partitioning schemes are handled by g_part, which
means I can look for the g_part class and have them
all, but for now I need to hardcode the numerous

I think when there's no partitioning class involved,
then the highest ranking geom that has a provider
may give me what I want. I think it would exclude
"users" like VFS and DEV.


Marcel Moolenaar
xcllnt at mac.com

More information about the freebsd-geom mailing list