From owner-cvs-src@FreeBSD.ORG Wed Jun 6 07:42:23 2007 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 67C8716A400; Wed, 6 Jun 2007 07:42:23 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id ED1D713C4B0; Wed, 6 Jun 2007 07:42:22 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id 742A91CC5A; Wed, 6 Jun 2007 19:42:21 +1200 (NZST) Date: Wed, 6 Jun 2007 19:42:21 +1200 From: Andrew Thompson To: Ceri Davies Message-ID: <20070606074221.GA25824@heff.fud.org.nz> References: <200706061141.04765.doconnor@gsoft.com.au> <71022.1181113051@critter.freebsd.dk> <20070606074002.GE1834@submonkey.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070606074002.GE1834@submonkey.net> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: src-committers@freebsd.org, Daniel O'Connor , 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-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 07:42:23 -0000 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'Connor" writes > > : > > > > >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? > > > > Wrong answer. > > > > 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? Its a binary variable sysctl -b kern.geom.confxml cheers, Andrew