Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jul 2008 22:20:23 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Mike Makonnen <mtm@wubethiopia.com>
Cc:        freebsd-hackers@freebsd.org, Rink Springer <rink@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: Sysinstall is still inadequate after all of these years
Message-ID:  <AB3F4FAB-BA35-4B81-A012-ACCF53E164D8@mac.com>
In-Reply-To: <48759BD8.20404@wubethiopia.com>
References:  <784966050807021123l267aa20en39eb513c12c90ad2@mail.gmail.com> <20080702235800.H47773@fledge.watson.org> <486C8700.5020100@lobraun.de> <20080703092511.T69986@fledge.watson.org> <486F8C57.9050908@wubethiopia.com> <b269bc570807071155u364225dfi298be797b728dca4@mail.gmail.com> <48737F79.6070401@wubethiopia.com> <20080708190407.GA68713@rink.nu> <47A12EFB-2433-4E60-BE15-48E1BDD22238@mac.com> <48759BD8.20404@wubethiopia.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jul 9, 2008, at 10:19 PM, Mike Makonnen wrote:

>> Yes, libdisk is bad. GEOM_PART has been designed
>> for use by installers. It can be interfaced
>> faily easily. See gpart(8) for example.
>
> Is there documentation for the geom_part API somewhere (I couldn't  
> find any)
> or do I have to look at gpart(8) to figure out how to use it?

I haven't written any documentation yet, so gpart(8) is
probably the best place to start.

> Is it ok to
> just use gpart(8) instead of using the geom_part API?

Using gpart(8) works just fine, except that you don't
have access to all the information that's in the XML.
Things like geometry come to mind.

But of course, you can always read the XML, use gpart(8)
to make a change and read the XML again. Having that,
it's only a tiny step to use the gctl interface directly.

FYI,

-- 
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AB3F4FAB-BA35-4B81-A012-ACCF53E164D8>