scsi: Return SAM status codes
authorHannes Reinecke <hare@suse.de>
Wed, 24 Nov 2010 11:15:57 +0000 (12:15 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 25 Nov 2010 11:00:10 +0000 (12:00 +0100)
commit06a415933ccff6220f3ae688109228fadd44a656
treed27de56a7d96f0bf061e3bf8759ba918ee246298
parentb82093f4bd2d3f3f5586e9a5eea029981b1dbaf8
scsi: Return SAM status codes

Traditionally, the linux stack is using SCSI status codes
which are shifted by one as compared to those defined in SAM.
A SCSI emulation should naturally return the SAM defined codes,
not the linux ones.
So to avoid any confusion this patch modifies the existing
definitions to match those found in SAM and removes any
(now obsolete) byte-shift from the returned status codes.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-defs.h
hw/scsi-generic.c