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

Dmitry Morozovsky marck at rinet.ru
Wed Jun 6 06:30:49 UTC 2007


On Wed, 6 Jun 2007, Daniel O'Connor wrote:

DO> On Wednesday 06 June 2007 07:44, M. Warner Losh wrote:
DO> > : '$1~/\\dev\\/(aacd|ad|afd|amrd|ar|da|idad|ipsd|mfid|mlxd|twed)/ &&
DO> > : \ $2~/\\/$/ {print substr($1, 1, index($1, \"s\") - 1)}'
DO> > : /etc/fstab`");
DO> > :
DO> > : where the regex is built from every device name in device_names
DO> > : (which even then doesn't cater for GEOM where devices might be
DO> > : called anything).  This is something that would require a build
DO> > : tool, which is why I haven't done it yet.
DO> >
DO> > "mmcsd" is also a disk.
DO> 
DO> Why not iterate over the output of sysctl -n kern.disks?
DO> I'd offer a diff but my awk-fu is weak :)

geom classes will be missed then.


Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------


More information about the cvs-src mailing list