[SCSI] libosd: SCSI/OSD Sense decoding support
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 25 Jan 2009 15:15:16 +0000 (17:15 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 12 Mar 2009 17:58:09 +0000 (12:58 -0500)
commit98f3aea2bd4b4f9cd7a6a6479ed9410787f756fd
tree6b5eeab307ab09372c62e7aac4516548d763b030
parent1b9dce94c8a24a3f1a01fcdf688f2d903b32acdf
[SCSI] libosd: SCSI/OSD Sense decoding support

Implementation of the osd_req_decode_sense() API. Can be called by
library users to decode what failed in command executions.

Add SCSI_OSD_DPRINT_SENSE Kconfig variable. Possible values are:
0 - Do not print any errors to messages file <KERN_ERR>
1 - (Default) Print only decoded errors that are not recoverable.
    Recoverable errors are those that the target has complied with
    the request but with a warning. For example read passed end of
    object will return zeros after the last valid byte.
2- Print all errors.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/osd/Kbuild
drivers/scsi/osd/osd_initiator.c
include/scsi/osd_initiator.h
include/scsi/osd_sense.h [new file with mode: 0644]