From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 10 17:08:52 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 690031065674; Thu, 10 Jul 2008 17:08:52 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout011.mac.com (asmtp011.mac.com [17.148.16.86]) by mx1.freebsd.org (Postfix) with ESMTP id 59D908FC27; Thu, 10 Jul 2008 17:08:52 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [192.168.1.102] (209-128-86-226.BAYAREA.NET [209.128.86.226]) by asmtp011.mac.com (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K3R006Q5YTZ3Z70@asmtp011.mac.com>; Wed, 09 Jul 2008 22:20:24 -0700 (PDT) Sender: xcllnt@mac.com Message-id: From: Marcel Moolenaar To: Mike Makonnen In-reply-to: <48759BD8.20404@wubethiopia.com> Date: Wed, 09 Jul 2008 22:20:23 -0700 References: <784966050807021123l267aa20en39eb513c12c90ad2@mail.gmail.com> <20080702235800.H47773@fledge.watson.org> <486C8700.5020100@lobraun.de> <20080703092511.T69986@fledge.watson.org> <486F8C57.9050908@wubethiopia.com> <48737F79.6070401@wubethiopia.com> <20080708190407.GA68713@rink.nu> <47A12EFB-2433-4E60-BE15-48E1BDD22238@mac.com> <48759BD8.20404@wubethiopia.com> X-Mailer: Apple Mail (2.926) Cc: freebsd-hackers@freebsd.org, Rink Springer , freebsd-current@freebsd.org Subject: Re: Sysinstall is still inadequate after all of these years X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 17:08:52 -0000 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