Re: [Qemu-devel] Online resize of virtio-blk device does not emit udev event

2013-02-22 Thread Milos Vyletel
- Original Message - On Wed, Feb 20, 2013 at 09:34:45PM +0100, Milos Vyletel wrote: It looks like none of the block drivers handle this. drivers/md/dm*.c is a block driver and you showed that LVM (device-mapper) does raise a uevent when the device is resized. That would be the

Re: [Qemu-devel] Online resize of virtio-blk device does not emit udev event

2013-02-21 Thread Stefan Hajnoczi
On Wed, Feb 20, 2013 at 09:34:45PM +0100, Milos Vyletel wrote: It looks like none of the block drivers handle this. drivers/md/dm*.c is a block driver and you showed that LVM (device-mapper) does raise a uevent when the device is resized. That would be the place to look. Stefan

Re: [Qemu-devel] Online resize of virtio-blk device does not emit udev event

2013-02-20 Thread Stefan Hajnoczi
On Tue, Feb 19, 2013 at 10:15:32PM +0100, Milos Vyletel wrote: I was looking at the virtblk_config_changed_work function in RHEL6.3 kernel's drivers/block/virtio_blk.c which I believe is the function handling blockresize and it does not look like it tries to emit any kobject uevent. Before

Re: [Qemu-devel] Online resize of virtio-blk device does not emit udev event

2013-02-20 Thread Milos Vyletel
Vyletel milos.vyle...@sde.cz Cc: qemu-devel@nongnu.org Sent: Wednesday, February 20, 2013 4:47:34 AM Subject: Re: [Qemu-devel] Online resize of virtio-blk device does not emit udev event On Tue, Feb 19, 2013 at 10:15:32PM +0100, Milos Vyletel wrote: I was looking at the virtblk_config_changed_work

[Qemu-devel] Online resize of virtio-blk device does not emit udev event

2013-02-19 Thread Milos Vyletel
Hi, This list seem to be most appropriate place to ask this question since it's QEMU related and virtio-blk maintainers are here as well. I'm doing some work with online resizing of guest's block device on LVM. What I do is call lvresize to expand logical volume itself and virsh blockresize to