diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2012-07-16 14:07:55 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-07-27 08:25:26 +0200 |
| commit | aaebacef0a55a7113335ae3f998031d3c538a477 (patch) | |
| tree | 8f76f724713f358ca2092526557418afa732eb71 /hw/scsi.h | |
| parent | e48e84ea80cb2e7fe6e48196ce187cfba6e3eb2c (diff) | |
| download | focaccia-qemu-aaebacef0a55a7113335ae3f998031d3c538a477.tar.gz focaccia-qemu-aaebacef0a55a7113335ae3f998031d3c538a477.zip | |
scsi-disk: report resized disk via sense codes
Linux will not use these, but a very similar mechanism will be used to report the condition via virtio-scsi events. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi.h')
| -rw-r--r-- | hw/scsi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/scsi.h b/hw/scsi.h index f920208fb2..82a5fc8a94 100644 --- a/hw/scsi.h +++ b/hw/scsi.h @@ -200,6 +200,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, Capacity data has changed */ +extern const struct SCSISense sense_code_CAPACITY_CHANGED; /* 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 */ |