Date: Tue, 20 Oct 1998 12:22:55 -0700 From: Mike Smith <mike@smith.net.au> To: asami@cs.berkeley.edu (Satoshi Asami) Cc: scsi@FreeBSD.ORG Subject: Re: for i in disks Message-ID: <199810201922.MAA00566@dingo.cdrom.com> In-Reply-To: Your message of "Tue, 20 Oct 1998 04:43:02 PDT." <199810201143.EAA17327@silvia.hip.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi folks, > > I'm thinking about implementing an "autorun"-like mechanism for disks. > The idea is to have a script with a known name on a known position > (say, partition `a' on the first BSD slice) which is called during > boot. The script does something to set up the disk (mount some other > partition, or set up a ccd, or something like that). > > However, to do this, I need to be able to write a loop in /etc/rc* to > iterate through all available disks. I guess devfs when fully > implemented will make this easy ("/devfs/da[0-9]*s?a"?) but my > understanding is that it is not ready yet. I could try mounting all > the nodes in /dev (the ones that are not available will presumably > just fail) but with up to 96 disks per system, that could be a lot of > failures. Nah, it's actually pretty trivial. I would, indeed, just iterate over the available nodes in /dev. When devfs comes along, it'll just get more efficient. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810201922.MAA00566>