commit | d7a84021db8eeddcd5d24ab591a1434763caff6c | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Feb 24 16:30:09 2021 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Feb 25 14:14:32 2021 +0100 |
tree | b176dbb666400680650b9f5a0fc8b22855ffcb65 | |
parent | 424740def9a42da88550410de9a41ef07cc4a010 [diff] |
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>