diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-09-13 16:26:06 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-10-28 19:25:50 +0200 |
commit | 8a9c16f69e3ecbcc6e6bc068012986b87412c876 (patch) | |
tree | 0bed1484dc690d5fa8d0ccf6bde5a704b9404ae1 /hw/scsi.h | |
parent | 3653d8c40e04d78eb6b5b069522daf7cc72d4f06 (diff) | |
download | qemu-8a9c16f69e3ecbcc6e6bc068012986b87412c876.zip qemu-8a9c16f69e3ecbcc6e6bc068012986b87412c876.tar.gz qemu-8a9c16f69e3ecbcc6e6bc068012986b87412c876.tar.bz2 |
scsi-disk: report media changed via unit attention sense codes
Building on the previous patch, this one adds a media change callback
to scsi-disk.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi.h')
-rw-r--r-- | hw/scsi.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -161,6 +161,8 @@ extern const struct SCSISense sense_code_IO_ERROR; extern const struct SCSISense sense_code_I_T_NEXUS_LOSS; /* Command aborted, Logical Unit failure */ extern const struct SCSISense sense_code_LUN_FAILURE; +/* LUN not ready, Medium not present */ +extern const struct SCSISense sense_code_UNIT_ATTENTION_NO_MEDIUM; /* Unit attention, Power on, reset or bus device reset occurred */ extern const struct SCSISense sense_code_RESET; /* Unit attention, Medium may have changed*/ |