cam patch: reducing logging output for 'normal' failures

Bruce Cran bruce at cran.org.uk
Tue Nov 23 22:53:24 UTC 2010


Hi,

I came across http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/119668
which contains a patch to reduce the verbosity of output from the cam
subsystem. cam has a tendancy to be a bit spammy when it 
comes across fairly normal situations such as the tray having been left 
open, or there just not being a disc present. For example:

(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
cd0 at umass-sim0 bus 0 scbus9 target 0 lun 0
cd0: <DVDRW USB H16X B02T> Removable CD-ROM SCSI-0 device 
cd0: 40.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
- tray closed

The first message, "Medium not present - tray closed" is unnecessary 
since it's repeated a few lines later and can look as though 
there's a real problem. I've attached an updated patch which adds the 
the tray open warning too.

Any comments?

-- 
Bruce Cran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cam_nonfatal.diff
Type: text/x-patch
Size: 2711 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-scsi/attachments/20101123/61c3e738/cam_nonfatal.bin


More information about the freebsd-scsi mailing list