Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jun 2007 06:57:31 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        src-committers@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org, delphij@freebsd.org, ceri@submonkey.net, "M. Warner Losh" <imp@bsdimp.com>
Subject:   Re: cvs commit: src/usr.sbin/sysinstall installUpgrade.c 
Message-ID:  <71022.1181113051@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 06 Jun 2007 11:40:10 %2B0930." <200706061141.04765.doconnor@gsoft.com.au> 

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


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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