cvs commit: src/usr.sbin/sysinstall installUpgrade.c

LI Xin delphij at delphij.net
Wed Jun 6 07:45:13 UTC 2007


Ceri Davies wrote:
> On Wed, Jun 06, 2007 at 06:57:31AM +0000, Poul-Henning Kamp wrote:
>> In message <200706061141.04765.doconnor at 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
> 
> 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,
-- 
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20070606/ed88407b/signature.pgp


More information about the cvs-src mailing list