Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2007 08:40:02 +0100
From:      Ceri Davies <ceri@submonkey.net>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        src-committers@freebsd.org, cvs-all@freebsd.org, 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:  <20070606074002.GE1834@submonkey.net>
In-Reply-To: <71022.1181113051@critter.freebsd.dk>
References:  <200706061141.04765.doconnor@gsoft.com.au> <71022.1181113051@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help

--kvUQC+jR9YzypDnK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
> :
>=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

That sounds like the right thing to do, but that sysctl returns nothing
on my RELENG_6 system; why would that be?

Ceri
--=20
That must be wonderful!  I don't understand it at all.
                                                  -- Moliere

--kvUQC+jR9YzypDnK
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFGZmTSocfcwTS3JF8RAvPAAKDAlZpUgAwJWj6QJ9/hMvLKR/Kp7wCgqPVh
pXc+CgpqaQRBUr4GFMxlLmY=
=+uli
-----END PGP SIGNATURE-----

--kvUQC+jR9YzypDnK--



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