From owner-freebsd-stable@FreeBSD.ORG Wed Dec 11 23:11:27 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 01879280 for ; Wed, 11 Dec 2013 23:11:27 +0000 (UTC) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 774FC1293 for ; Wed, 11 Dec 2013 23:11:26 +0000 (UTC) Received: from ur.dons.net.au (ppp121-45-29-106.lns20.adl2.internode.on.net [121.45.29.106]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id rBBNBFDv006552 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 12 Dec 2013 09:41:21 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Re: BIND segway -> python -> first-class ports Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset=iso-8859-1 From: "Daniel O'Connor" In-Reply-To: <52A8F0B7.1080109@bluerosetech.com> Date: Thu, 12 Dec 2013 09:41:15 +1030 Content-Transfer-Encoding: quoted-printable Message-Id: <62C65AF2-B68A-4898-9FBB-237DDE622758@gsoft.com.au> References: <20131210023615.GR55638@funkthat.com> <52A68141.6010003@mu.org> <622122.74675.bm@smtp120.sbc.mail.gq1.yahoo.com> <20131210224915.GA55638@funkthat.com> <52A82099.9080100@bluerosetech.com> <52A8F0B7.1080109@bluerosetech.com> To: Darren Pilgrim X-Mailer: Apple Mail (2.1822) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: "freebsd-stable@freebsd.org Stable" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Dec 2013 23:11:27 -0000 On 12 Dec 2013, at 9:39, Darren Pilgrim = wrote: > On 12/11/2013 2:45 AM, Daniel O'Connor wrote: >> On 11 Dec 2013, at 18:51, Darren Pilgrim = wrote: >>> On 12/10/2013 9:34 PM, Kevin Oberman wrote: >>>> A parseable output from gpart would be wonderful. >>>=20 >>> Have you seen the kern.geom.conf* sysctls? >>=20 >> Have you tried parsing them from a shell script? :) >=20 > Yes, actually. kern.geom.conftxt is particularly easy to parse--it's = already a set of space-separated fields, one line per device. >=20 Oops, actually I misread that and assumed it was talking about the XML = version. However the txt version has some very serious limitations - for example = if you have labels with whitespace it will be ambiguous. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C