]> git.proxmox.com Git - mirror_qemu.git/commit
scsi: Rename linux-specific SG_ERR codes to generic SCSI_HOST error codes
authorHannes Reinecke <hare@suse.de>
Mon, 16 Nov 2020 18:40:38 +0000 (19:40 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 6 Mar 2021 10:41:54 +0000 (11:41 +0100)
commit41af878b96582fc8c83303ab8921e40468403702
tree095e9c1818466f947a841b7ad2a86716e931d25b
parentf7544edcd32e602af1aae86714dc7c32350d5d7c
scsi: Rename linux-specific SG_ERR codes to generic SCSI_HOST error codes

We really should make a distinction between legitimate sense codes
(ie if one is running against an emulated block device or for
pass-through sense codes), and the intermediate errors generated
during processing of the command, which really are not sense codes
but refer to some specific internal status. And this internal
state is not necessarily linux-specific, but rather can refer to
the qemu implementation itself.
So rename the linux-only SG_ERR codes to SCSI_HOST codes and make
them available generally.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Message-Id: <20201116184041.60465-5-hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/scsi/utils.h
scsi/utils.c