qemu-e2k/scsi
Hannes Reinecke a108557bbf scsi: inline sg_io_sense_from_errno() into the callers.
Currently sg_io_sense_from_errno() converts the two input parameters
'errno' and 'io_hdr' into sense code and SCSI status. Having
split the function off into scsi_sense_from_errno() and
scsi_sense_from_host_status(), both of which are available generically,
we now inline the logic in the callers so that scsi-disk and
scsi-generic will be able to pass host_status to the HBA.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Message-Id: <20201116184041.60465-7-hare@suse.de>
[Put together from "scsi-disk: Add sg_io callback to evaluate status"
 and what remains of "scsi: split sg_io_sense_from_errno() in two functions",
 with many other fixes. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-03-06 11:42:56 +01:00
..
meson.build meson: convert block 2020-08-21 06:30:18 -04:00
pr-helper.h
pr-manager-helper.c Pull request trivial patches 20200919 2020-09-22 15:42:23 +01:00
pr-manager-stub.c
pr-manager.c qapi: Use QAPI_LIST_APPEND in trivial cases 2021-01-28 08:08:45 +01:00
qemu-pr-helper.c scsi: inline sg_io_sense_from_errno() into the callers. 2021-03-06 11:42:56 +01:00
trace-events
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
utils.c scsi: inline sg_io_sense_from_errno() into the callers. 2021-03-06 11:42:56 +01:00