[Stgt-devel] [PATCH 1/3] osd sense fixup

Douglas Gilbert dougg
Fri Mar 16 14:38:22 CET 2007


FUJITA Tomonori wrote:
> From: Pete Wyckoff <pw at osc.edu>
> Subject: [Stgt-devel] [PATCH 1/3] osd sense fixup
> Date: Thu, 15 Mar 2007 14:57:04 -0400
> 
>> OSD must use descriptor format sense data.  Support request sense and
>> report luns.  Add support for a couple more inquiry page codes.  Remove
>> list of actions; submit can deal with it.  They are obsolete anyway.
> 
> descriptor format sense is not only for OSD. struct tgt_device needs
> to have some SCSI parameters and sense_data_build() should follow them.
> 
> I added only d_sense and fixed sense_data_build().

I have a fair amount of descriptor sense data processing
code around the place:
   - in the linux scsi mid level
   - in sg3_utils (specifically sg_lib.c)
   - in the scsi_debug virtual LLD

The latter item is probably closest to what tgt needs.
Another device "type" that might be usefully put in
tgt is a SAT layer. To implement a SAT layer descriptor
sense generation is needed (since that is how FIS
registers are conveyed back to the initiator).


Has anyone ever thought of implementing the IMMED bit
is some SCSI cdbs? START STOP UNIT is one example.

Doug Gilbert






More information about the stgt mailing list