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
[EMAIL PROTECTED]



_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to