scsi: Return SAM status codes
commitf017132793065abcdc4b9b78d7ca575eeb3de484
authorHannes Reinecke <hare@suse.de>
Wed, 24 Nov 2010 11:15:57 +0000 (24 12:15 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 25 Nov 2010 11:00:10 +0000 (25 12:00 +0100)
treed27de56a7d96f0bf061e3bf8759ba918ee246298
parent622b520fb4ca50b5028485f1d225317ece0a42b9
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