Date: Tue, 20 Oct 1998 13:32:51 -0700 From: Mike Smith <mike@smith.net.au> To: asami@FreeBSD.ORG (Satoshi Asami) Cc: mike@smith.net.au, scsi@FreeBSD.ORG Subject: Re: for i in disks Message-ID: <199810202032.NAA00961@dingo.cdrom.com> In-Reply-To: Your message of "Tue, 20 Oct 1998 13:21:39 PDT." <199810202021.NAA19725@silvia.hip.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> * 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. > > Well yes, but what I meant to say was that there are 96 available > nodes in /dev due to wired down devices, but the number in each > machine could be as little as 16. That's not very efficient. ;) I wouldn't be losing any sleep over as few as 80 failed system calls. How many times do you call select()? Seriously; trying to find any "better" solution is just silly. It's not as if it takes any time for the system to work out that the disk you've tried to open doesn't exist. If you get ENXIO then it's either not there or not online and you move on. -- \\ 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?199810202032.NAA00961>