]> git.proxmox.com Git - mirror_qemu.git/commit
scsi-disk: convert more errno values back to SCSI statuses
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Nov 2020 09:52:04 +0000 (10:52 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Nov 2020 18:22:17 +0000 (13:22 -0500)
commit3b12a7fd39307017c8968b8d05986a63b33752b5
tree81b8f40c70858a47d9326c948c74ceb470a67024
parentb430b51395650137a80e78ee7395165b80fe1752
scsi-disk: convert more errno values back to SCSI statuses

Linux has some OS-specific (and sometimes weird) mappings for various SCSI
statuses and sense codes.  The most important is probably RESERVATION
CONFLICT.  Add them so that they can be reported back to the guest
kernel.

Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-disk.c