Date: Wed, 6 Jun 2007 10:30:46 +0400 (MSD) From: Dmitry Morozovsky <marck@rinet.ru> 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: <20070606103028.B72470@woozle.rinet.ru> In-Reply-To: <200706061141.04765.doconnor@gsoft.com.au> References: <200706050544.l555ifKp014690@repoman.freebsd.org> <20070605190601.GC1834@submonkey.net> <20070605.161442.1723940823.imp@bsdimp.com> <200706061141.04765.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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@rinet.ru *** ------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070606103028.B72470>