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 t

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 Milos Vyletel
", \ ENV{ID_FS_TYPE}=="LVM2_member", \ RUN+="/sbin/pvresize /dev/%k" Milos ----- Original Message - From: "Stefan Hajnoczi" To: "Milos Vyletel" Cc: qemu-devel@nongnu.org Sent: Wednesday, February 20, 2013 4:47:34 AM Subject: Re:

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. > > B