From owner-freebsd-stable@FreeBSD.ORG Wed Dec 11 23:49:58 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 75285EE8 for ; Wed, 11 Dec 2013 23:49:58 +0000 (UTC) Received: from yoshi.bluerosetech.com (yoshi.bluerosetech.com [IPv6:2607:f2f8:a450::66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5637F150A for ; Wed, 11 Dec 2013 23:49:58 +0000 (UTC) Received: from chombo.houseloki.net (unknown [IPv6:2601:7:1680:cf0:21c:c0ff:fe7f:96ee]) by yoshi.bluerosetech.com (Postfix) with ESMTPSA id 184C1E6069; Wed, 11 Dec 2013 15:49:52 -0800 (PST) Received: from [IPv6:2601:7:1680:cf0:71da:c451:e6df:6090] (unknown [IPv6:2601:7:1680:cf0:71da:c451:e6df:6090]) by chombo.houseloki.net (Postfix) with ESMTPSA id 3CBBCEE9; Wed, 11 Dec 2013 15:49:51 -0800 (PST) Message-ID: <52A8FA2B.2020902@bluerosetech.com> Date: Wed, 11 Dec 2013 15:50:03 -0800 From: Darren Pilgrim User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Daniel O'Connor Subject: Re: BIND segway -> python -> first-class ports 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> <62C65AF2-B68A-4898-9FBB-237DDE622758@gsoft.com.au> In-Reply-To: <62C65AF2-B68A-4898-9FBB-237DDE622758@gsoft.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:49:58 -0000 On 12/11/2013 3:11 PM, Daniel O'Connor wrote: > > 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. >>>> >>>> Have you seen the kern.geom.conf* sysctls? >>> >>> Have you tried parsing them from a shell script? :) >> >> Yes, actually. kern.geom.conftxt is particularly easy to >> parse--it's already a set of space-separated fields, one line per >> device. >> > > 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. Well, yes, but you'll also get a /dev/gpt device entry with a space in it--a slightly more serious problem. :)