Folks,

        I just did a bit of searching on the website, and garnered enough 
information from 
<http://www.freebsd.org/cgi/getmsg.cgi?fetch=546460+0+/usr/local/www/d 
b/text/1998/freebsd-questions/19981115.freebsd-questions> to be able 
to add a new "quirk" in /usr/src/sys/cam/cam_xpt.c for a piece of 
hardware I'm having some difficulty with.

        Assuming this works, I will file a proper PR, etc....


        However, shouldn't there be an easier way to do this?  For 
example, shouldn't there be a sysctl for changing these sorts of 
things, perhaps something like:

                kern.cam.cd.changer.min_busy_seconds: 5
                kern.cam.cd.changer.max_busy_seconds: 15
                kern.cam.quirks.direct.fixed.quantum.XP39100*.*.mintags: 24
                kern.cam.quirks.direct.fixed.quantum.XP39100*.*.maxtags: 32
                kern.cam.quirks.direct.fixed.quantum.XP34550*.*.mintags: 24
                kern.cam.quirks.direct.fixed.quantum.XP34550*.*.maxtags: 32
                kern.cam.quirks.direct.fixed.quantum.XP32275*.*.mintags: 24
                kern.cam.quirks.direct.fixed.quantum.XP32275*.*.maxtags: 32

        This would make it very easy to add new quirks as they come along 
(just update your sysctl.conf), and without having to always file a 
PR so that /usr/src/sys/cam/cam_xpt.c gets modified so that you can 
have your quirk and track -CURRENT too (or -STABLE, for that matter).

--
   These are my opinions -- not to be taken as official Skynet policy
======================================================================
Brad Knowles, <[EMAIL PROTECTED]>                || Belgacom Skynet SA/NV
Systems Architect, Mail/News/FTP/Proxy Admin || Rue Colonel Bourg, 124
Phone/Fax: +32-2-706.13.11/12.49             || B-1140 Brussels
http://www.skynet.be                         || Belgium


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to