f68d98b21f
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:
|
||
---|---|---|
.. | ||
Makefile.objs | ||
pr-helper.h | ||
pr-manager-helper.c | ||
pr-manager.c | ||
qemu-pr-helper.c | ||
trace-events | ||
utils.c |