Subject: Re: Interpreting SCSI output messages
To: Ben Collver <collver@peak.org>
From: Frank Kardel <kardel@netbsd.org>
List: tech-kern
Date: 07/17/2006 08:29:06
Ben Collver wrote:

>On Sat, Jul 15, 2006 at 06:08:22PM -0400, Greg A. Woods wrote:
>  
>
>>Is there an existing tool to do this?
>>    
>>
>
>I couldn't find one, so here is a go at it:
>http://terrorpin.net/~ben/docs/comp/lang/c/scsi-cdb-decipher.c
>
>example output:
>
>$ ./a.out
>Enter magic numbers: 0x28 00 00 05 10 8a 00 00 20 00
>group=1, op=READ(10), lba=331914, lbalen=8, control=0, len=32
>
>Cheers,
>
>Ben
>
>  
>
What about putting a decoder like that into the kernel
(possibly ifdef-ed SCSI_VERBOSE)?

Frank