Paolo Bonzini d7a84021db 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>
2021-02-25 14:14:32 +01:00
..
2020-09-09 09:27:09 -04:00
2020-09-09 13:20:22 -04:00
2020-08-21 06:30:28 -04:00
2020-09-09 09:27:09 -04:00
2013-09-12 08:46:21 +02:00