Subject: More verbose SCSI errors...
To: None <current-users@NetBSD.ORG>
From: Matthew Jacob <mjacob@feral.com>
List: current-users
Date: 08/18/1997 20:54:08
I've been running around a while with a modified scsi_base.c &&
st.c that decodes in a more readable human fashion SCSI sense
data- Key as well as ASC/ASCQ and FPV data. This is all controlled
by an option SCSIVERBOSE (since it adds strings to the kernel- not
everyone will want it)..

For example- I'm playing around with a Sony DTF unit (vhs/beta
tape unit) and I'm trying to get compression enabled, so I
do a mode sense and get:

Aug 18 13:06:00 frobzit /netbsd: st0(ncr1:5:0): illegal request, data = 00 00 00 00 24 00 00 00 00 00 81 03 80 01 30 31 30 30 00 00 00 00 00 00 00 00 00 00 00 1a 00 10 00 1c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 24 2f 7d f8 00 00 00 00 38 2f 7d f8 3c 30

Hmm. Oops. Forgot SCSIVERBOSE. Not incredibly useful. How about:

Aug 18 13:24:02 frobzit /netbsd: st0(ncr1:5:0):  Check Condition on opcode 1a
Aug 18 13:24:02 frobzit /netbsd:     SENSE KEY:  Illegal Request
Aug 18 13:24:02 frobzit /netbsd:      ASC/ASCQ:  Illegal Field in CDB

instead? It's not *that* much more informative than the other, except
for the ASC/ASCQ, which told me instantly what I wanted to know.
There are many cases where it *is* much more informative as well
(all the 8 zillion variants of UNIT ATTENTION).

Is there any desire to see this integrated?

-matt