Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2000 14:52:31 +0200
From:      Brad Knowles <blk@skynet.be>
To:        FreeBSD-CURRENT Mailing List <freebsd-current@freebsd.org>
Cc:        freebsd-scsi@freebsd.org
Subject:   Sysctl for CAM SCSI quirks?
Message-ID:  <v04220810b50e4251c2ae@[195.238.1.121]>

next in thread | raw e-mail | index | archive | help
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, <blk@skynet.be>                || 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 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?v04220810b50e4251c2ae>