From owner-cvs-all@FreeBSD.ORG Wed Jun 6 07:45:13 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 C70AB16A41F; Wed, 6 Jun 2007 07:45:13 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 90E1913C458; Wed, 6 Jun 2007 07:45:11 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 19711EB7BEA; Wed, 6 Jun 2007 15:45:07 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id yk2jkkmo1-U9; Wed, 6 Jun 2007 15:44:59 +0800 (CST) Received: from LI-Xins-MacBook.local (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 3B1E2EB7BDC; Wed, 6 Jun 2007 15:44:58 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:x-enigmail-version:content-type; b=tzLxy7+3lM0T12bpE5M4m4jwxo+YCOnvT/VNFI9vkfkMOO5WGAspa8+CrCi6YLrCT Jtcvrmw/PqlIp/Z7QvFnQ== Message-ID: <466665F4.60709@delphij.net> Date: Wed, 06 Jun 2007 15:44:52 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Ceri Davies References: <200706061141.04765.doconnor@gsoft.com.au> <71022.1181113051@critter.freebsd.dk> <20070606074002.GE1834@submonkey.net> In-Reply-To: <20070606074002.GE1834@submonkey.net> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigBACB6C4753FF2E382552DC4D" 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:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBACB6C4753FF2E382552DC4D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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'Conno= r" 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 >=20 > That sounds like the right thing to do, but that sysctl returns nothing= > on my RELENG_6 system; why would that be? Hmmm... It seems that sysctl(8) needs to be extended to support output of these. Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enigBACB6C4753FF2E382552DC4D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGZmX0OfuToMruuMARCro5AJ9vS4JTZyMS4jsZ9/CL0/v1uleqMACbB0HE byJ3+wrbuJrmTGuU8ZrwOI4= =qiXZ -----END PGP SIGNATURE----- --------------enigBACB6C4753FF2E382552DC4D--