aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-12-01 18:40:06 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2017-12-20 22:29:26 +0100
commita4a9b6eaf35dbe4bf0e069854945bf5e45fc7eab (patch)
tree9db978a8f4394911b84fc4ac0430f868c048445a /include
parent68a9398261ca38979bbc2b7c89ed5bb044ccc9e6 (diff)
downloadqemu-a4a9b6eaf35dbe4bf0e069854945bf5e45fc7eab.zip
qemu-a4a9b6eaf35dbe4bf0e069854945bf5e45fc7eab.tar.gz
qemu-a4a9b6eaf35dbe4bf0e069854945bf5e45fc7eab.tar.bz2
qemu-pr-helper: miscellaneous fixes
1) Return a generic sense if TEST UNIT READY does not provide one; 2) Fix two mistakes in copying from the spec. Cc: qemu-stable@nongnu.org Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/scsi/utils.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/scsi/utils.h b/include/scsi/utils.h
index 00a4bdb..eb07e47 100644
--- a/include/scsi/utils.h
+++ b/include/scsi/utils.h
@@ -76,7 +76,11 @@ extern const struct SCSISense sense_code_LUN_FAILURE;
extern const struct SCSISense sense_code_LUN_COMM_FAILURE;
/* Command aborted, Overlapped Commands Attempted */
extern const struct SCSISense sense_code_OVERLAPPED_COMMANDS;
-/* LUN not ready, Capacity data has changed */
+/* Medium error, Unrecovered read error */
+extern const struct SCSISense sense_code_READ_ERROR;
+/* LUN not ready, Cause not reportable */
+extern const struct SCSISense sense_code_NOT_READY;
+/* Unit attention, Capacity data has changed */
extern const struct SCSISense sense_code_CAPACITY_CHANGED;
/* Unit attention, SCSI bus reset */
extern const struct SCSISense sense_code_SCSI_BUS_RESET;