Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jun 2007 15:44:52 +0800
From:      LI Xin <delphij@delphij.net>
To:        Ceri Davies <ceri@submonkey.net>
Cc:        src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, Poul-Henning Kamp <phk@phk.freebsd.dk>, 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:  <466665F4.60709@delphij.net>
In-Reply-To: <20070606074002.GE1834@submonkey.net>
References:  <200706061141.04765.doconnor@gsoft.com.au> <71022.1181113051@critter.freebsd.dk> <20070606074002.GE1834@submonkey.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <delphij@delphij.net>	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--



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