Date: Tue, 22 Aug 1995 01:29:04 -0400 From: Charles Hannum <Charles-Hannum@deshaw.com> To: dufault@hda.com Cc: joerg_wunsch@uriah.heep.sax.de, scsi@freebsd.org Subject: Re: scsiconf change Message-ID: <199508220529.BAA01099@duality.gnu.ai.mit.edu>
next in thread | raw e-mail | index | archive | help
and change scsi_selectdev to a scoring scheme: [code omitted] This is a similar idea to the pattern matcher I wrote in the NetBSD SCSI code last year. The vendor/product/revision matching can be partial, and is scored based on the number of characters that were checked, which provides even more flexibility. The patterns are stored in an array, which each driver can elect to specify a wider version of, with the beginning of each array element being assumed to be in a common format. (This is vaguely similar to how the qsort(3) interface works, so there's some precedent for it.) Currently, only the `st' driver has any driver-specific quirk info. The net effect of this design is that it has all the flexibility people have been asking for, allows each driver to have its own quirk info, and still allows the matching to be done with a common routine. I've also made a number of other structural improvements, including much better error handling, and one that effectively speeds up probing for SCSI devices by a factor of 3x. Anyone interested can inquire, or go look at the code. (Note that I'm *very* busy, so replies are likely to be glacial.)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508220529.BAA01099>