From owner-cvs-all@FreeBSD.ORG Wed Jun 6 07:45:54 2007 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1160116A46C; Wed, 6 Jun 2007 07:45:54 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc3-cdif2-0-0-cust64.cdif.cable.ntl.com [81.106.128.65]) by mx1.freebsd.org (Postfix) with ESMTP id AF71113C458; Wed, 6 Jun 2007 07:45:53 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.67 (FreeBSD)) (envelope-from ) id 1HvqDI-0007a0-CJ; Wed, 06 Jun 2007 08:45:52 +0100 Date: Wed, 6 Jun 2007 08:45:52 +0100 From: Ceri Davies To: Andrew Thompson Message-ID: <20070606074552.GG1834@submonkey.net> References: <200706061141.04765.doconnor@gsoft.com.au> <71022.1181113051@critter.freebsd.dk> <20070606074002.GE1834@submonkey.net> <20070606074221.GA25824@heff.fud.org.nz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zaRBsRFn0XYhEU69" Content-Disposition: inline In-Reply-To: <20070606074221.GA25824@heff.fud.org.nz> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.15 (2007-04-06) Sender: Ceri Davies Cc: src-committers@freebsd.org, cvs-all@freebsd.org, Poul-Henning Kamp , delphij@freebsd.org, cvs-src@freebsd.org, "M. Warner Losh" Subject: Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 07:45:54 -0000 --zaRBsRFn0XYhEU69 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 06, 2007 at 07:42:21PM +1200, Andrew Thompson wrote: > On Wed, Jun 06, 2007 at 08:40:02AM +0100, Ceri Davies wrote: > > On Wed, Jun 06, 2007 at 06:57:31AM +0000, Poul-Henning Kamp wrote: > > > In message <200706061141.04765.doconnor@gsoft.com.au>, "Daniel O'Conn= or" writes > > > : > > >=20 > > > >On Wednesday 06 June 2007 07:44, M. Warner Losh wrote: > > > >> : '$1~/\\dev\\/(aacd|ad|afd|amrd|ar|da|idad|ipsd|mfid|mlxd|twed)/ = && > > > >> : \ $2~/\\/$/ {print substr($1, 1, index($1, \"s\") - 1)}' > > > >> : /etc/fstab`"); > > > >> : > > > >> : where the regex is built from every device name in device_names > > > >> : (which even then doesn't cater for GEOM where devices might be > > > >> : called anything). This is something that would require a build > > > >> : tool, which is why I haven't done it yet. > > > >> > > > >> "mmcsd" is also a disk. > > > > > > > >Why not iterate over the output of sysctl -n kern.disks? > > >=20 > > > Wrong answer. > > >=20 > > > Right answer: Why not read it from sysctl kern.geom.confxml > >=20 > > That sounds like the right thing to do, but that sysctl returns nothing > > on my RELENG_6 system; why would that be? >=20 > Its a binary variable >=20 > sysctl -b kern.geom.confxml Excellent, thank you. Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --zaRBsRFn0XYhEU69 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGZmYwocfcwTS3JF8RAmZsAJ9MoaUEwx+VXF1zFlZla4NqTuJ11QCeIRTs EaOIaB4aW5JIBfbTt0dRiGc= =L/x2 -----END PGP SIGNATURE----- --zaRBsRFn0XYhEU69--