diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-24 16:30:09 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-25 14:14:32 +0100 |
commit | d7a84021db8eeddcd5d24ab591a1434763caff6c (patch) | |
tree | b176dbb666400680650b9f5a0fc8b22855ffcb65 /linux-user/aarch64 | |
parent | 424740def9a42da88550410de9a41ef07cc4a010 (diff) | |
download | qemu-d7a84021db8eeddcd5d24ab591a1434763caff6c.zip qemu-d7a84021db8eeddcd5d24ab591a1434763caff6c.tar.gz qemu-d7a84021db8eeddcd5d24ab591a1434763caff6c.tar.bz2 |
scsi: introduce scsi_sense_from_errno()
The new function is an extension of the switch statement in scsi-disk.c
which also includes the errno cases only found in sg_io_sense_from_errno.
This allows us to consolidate the errno handling.
Extracted from a patch by Hannes Reinecke <hare@suse.de>.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-user/aarch64')
0 files changed, 0 insertions, 0 deletions