Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jun 2007 09:31:11 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Ceri Davies <ceri@submonkey.net>
Cc:        src-committers@freebsd.org, cvs-all@freebsd.org, delphij@freebsd.org, cvs-src@freebsd.org, "M. Warner Losh" <imp@bsdimp.com>
Subject:   Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c 
Message-ID:  <72054.1181122271@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 06 Jun 2007 10:28:37 %2B0100." <20070606092836.GL1834@submonkey.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20070606092836.GL1834@submonkey.net>, Ceri Davies writes:
>
>--enLffk0M6cffIOOh
>Content-Type: text/plain; charset=us-ascii
>Content-Disposition: inline
>Content-Transfer-Encoding: quoted-printable
>
>On Wed, Jun 06, 2007 at 06:56:42PM +0930, Daniel O'Connor wrote:
>> On Wednesday 06 June 2007 17:10, Ceri Davies wrote:
>> > > Right answer:  Why not read it from sysctl kern.geom.confxml
>> >
>> > That sounds like the right thing to do, but that sysctl returns
>> > nothing on my RELENG_6 system; why would that be?
>>=20
>> Also, parsing it could be problematic :(
>> (XML isn't in sysinstall's limited repertoire)

Please look at how gstat uses a convenient library function to
do just that...

>Well there is kern.geom.conftxt :)

Please don't  That is only a crutch for the old crufty libdisk.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?72054.1181122271>