mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
scsi: report parameter changes to HBA drivers
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
aaebacef0a
commit
53200fad0e
3 changed files with 13 additions and 0 deletions
|
@ -1869,6 +1869,7 @@ static void scsi_disk_resize_cb(void *opaque)
|
|||
*/
|
||||
if (s->qdev.type == TYPE_DISK) {
|
||||
scsi_device_set_ua(&s->qdev, SENSE_CODE(CAPACITY_CHANGED));
|
||||
scsi_device_report_change(&s->qdev, SENSE_CODE(CAPACITY_CHANGED));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue