[SCSI] virtio-scsi: support online resizing of disks
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2012 15:25:48 +0000 (17:25 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 9 Oct 2012 10:24:47 +0000 (11:24 +0100)
commit865b58c05b841964f48f574c2027311bd04db8a1
tree2559fdb2e8b8191caf97900be89758230f394607
parent9da5f5ac6affad8dd8cd80f5cca26e4335e1728b
[SCSI] virtio-scsi: support online resizing of disks

Support the LUN parameter change event.  Currently, the host fires this event
when the capacity of a disk is changed from the virtual machine monitor.
The resize then appears in the kernel log like this:

  sd 0:0:0:0: [sda] 46137344 512-byte logical blocks: (23.6 GB/22.0 GIb)
  sda: detected capacity change from 22548578304 to 23622320128

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/virtio_scsi.c
include/linux/virtio_scsi.h