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
..
2021-01-22 18:26:40 +01:00
2021-01-12 21:19:02 +00:00
2020-12-10 12:15:18 -05:00
2020-12-10 12:15:18 -05:00
2020-12-10 12:15:07 -05:00
2021-01-08 15:13:38 +00:00
2020-12-10 12:15:18 -05:00
2021-02-20 12:36:19 +01:00
2020-12-10 12:15:08 -05:00
2020-08-21 06:30:25 -04:00
2021-02-05 08:52:58 -05:00
2021-02-10 15:42:20 +00:00
2020-08-27 14:04:55 -04:00
2021-01-01 22:57:15 +00:00
2020-12-10 12:15:06 -05:00
2021-02-21 12:12:18 +00:00
2020-12-10 12:15:08 -05:00
2020-12-10 12:15:18 -05:00
2021-02-11 11:50:14 +00:00
2020-08-21 06:30:33 -04:00
2021-02-08 15:15:32 +01:00
2021-02-05 08:52:58 -05:00
2020-08-21 06:30:33 -04:00