qemu/scsi
Paolo Bonzini f68d98b21f scsi: provide general-purpose functions to manage sense data
Extract the common parts of scsi_sense_buf_to_errno, scsi_convert_sense
and scsi_target_send_command's REQUEST SENSE handling into two new
functions scsi_parse_sense_buf and scsi_build_sense_buf.

Fix a bug in scsi_target_send_command along the way; the length was
written in buf[10] rather than buf[7].

Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Fixes: b07fbce634 ("scsi-bus: correct responses for INQUIRY and REQUEST SENSE")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-12-21 09:30:32 +01:00
..
Makefile.objs scsi: add persistent reservation manager using qemu-pr-helper 2017-09-22 21:07:27 +02:00
pr-helper.h scsi: build qemu-pr-helper 2017-09-22 21:07:24 +02:00
pr-manager-helper.c scsi: add persistent reservation manager using qemu-pr-helper 2017-09-22 21:07:27 +02:00
pr-manager.c scsi, file-posix: add support for persistent reservation management 2017-09-22 01:06:51 +02:00
qemu-pr-helper.c qemu-pr-helper: miscellaneous fixes 2017-12-20 22:29:26 +01:00
trace-events scsi, file-posix: add support for persistent reservation management 2017-09-22 01:06:51 +02:00
utils.c scsi: provide general-purpose functions to manage sense data 2017-12-21 09:30:32 +01:00