On Wed, Jul 15, 2009 at 2:01 PM, 谢纲<xiegang112@xxxxxxxxx> wrote: > Hi, > > I'm little confused about the time of returning the sense data. > > After the status of the scsi response is check condition and sense > data is generated, When do we send the sense data? In the response > which contain the command status of check condition, or send it when > received a REQUEST SENSE cmd? I got it: iSCSI targets MUST support and enable autosense. If Status is CHECK CONDITION (0x02), then the Data Segment MUST contain sense data for the failed command. I think there is a little difference between direct access device and device with scsi transport layer. For example, the driver of LSILOGIC 53C8XX will send request sense command to do auto sense itself. But for iscsi, it seems that the request sense command is not needed when auto sense. Thanks, > -- > Xie Gang > -- Xie Gang -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html