From owner-cvs-all@FreeBSD.ORG Wed Jun 6 02:11:12 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 1D51E16A400 for ; Wed, 6 Jun 2007 02:11:12 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id A8DC813C4AD for ; Wed, 6 Jun 2007 02:11:11 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp158-41.lns11.adl6.internode.on.net [121.45.158.41]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id l562B8Xn049041 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 6 Jun 2007 11:41:09 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: cvs-all@freebsd.org Date: Wed, 6 Jun 2007 11:40:10 +0930 User-Agent: KMail/1.9.5 References: <200706050544.l555ifKp014690@repoman.freebsd.org> <20070605190601.GC1834@submonkey.net> <20070605.161442.1723940823.imp@bsdimp.com> In-Reply-To: <20070605.161442.1723940823.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1610606.scctDnt8Tt"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200706061141.04765.doconnor@gsoft.com.au> X-Spam-Score: -2.312 () BAYES_00 X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 Cc: delphij@freebsd.org, cvs-src@freebsd.org, ceri@submonkey.net, src-committers@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 02:11:12 -0000 --nextPart1610606.scctDnt8Tt Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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? I'd offer a diff but my awk-fu is weak :) =2D-=20 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 --nextPart1610606.scctDnt8Tt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBGZhe45ZPcIHs/zowRAjcfAKCh4gdlrdZTSFedb+3YwIpAzqJ62gCgmB2U B0fIKkd2bnmh6zseDlEXqAM= =hfKE -----END PGP SIGNATURE----- --nextPart1610606.scctDnt8Tt--