Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-27 Thread Milos Vyletel
- Original Message - > Milos Vyletel writes: > > On Feb 25, 2013, at 5:12 PM, Greg KH wrote: > > > >> On Fri, Feb 22, 2013 at 10:14:49AM +1030, Rusty Russell wrote: > >>> Milos Vyletel writes: > >>> > When virtio-blk device is resized from host (using block_resize from > QEMU)

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-26 Thread Rusty Russell
Milos Vyletel writes: > When virtio-blk device is resized from host (using block_resize from QEMU) > emit > KOBJ_CHANGE uevent to notify guest about such change. This allows user to have > custom udev rules which would take whatever action if such event occurs. As a > proof of concept I've creat

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-26 Thread Rusty Russell
Milos Vyletel writes: > On Feb 25, 2013, at 5:12 PM, Greg KH wrote: > >> On Fri, Feb 22, 2013 at 10:14:49AM +1030, Rusty Russell wrote: >>> Milos Vyletel writes: >>> When virtio-blk device is resized from host (using block_resize from QEMU) emit KOBJ_CHANGE uevent to notify gues

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-26 Thread Milos Vyletel
- Original Message - > On 02/25/2013 10:54 PM, Milos Vyletel wrote: > > - Original Message - > >> On 02/22/2013 03:02 AM, Milos Vyletel wrote: > >>> When virtio-blk device is resized from host (using block_resize from > >>> QEMU) > >>> emit > >>> KOBJ_CHANGE uevent to notify guest a

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-25 Thread Asias He
On 02/25/2013 10:54 PM, Milos Vyletel wrote: > - Original Message - >> On 02/22/2013 03:02 AM, Milos Vyletel wrote: >>> When virtio-blk device is resized from host (using block_resize from QEMU) >>> emit >>> KOBJ_CHANGE uevent to notify guest about such change. This allows user to >>> have

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-25 Thread Milos Vyletel
On Feb 25, 2013, at 5:12 PM, Greg KH wrote: > On Fri, Feb 22, 2013 at 10:14:49AM +1030, Rusty Russell wrote: >> Milos Vyletel writes: >> >>> When virtio-blk device is resized from host (using block_resize from QEMU) >>> emit >>> KOBJ_CHANGE uevent to notify guest about such change. This allow

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-25 Thread Milos Vyletel
On Feb 25, 2013, at 5:39 PM, Kay Sievers wrote: > On Mon, Feb 25, 2013 at 11:12 PM, Greg KH wrote: > >> Hm, I thought we were frowning apon running binaries from udev rules >> these days, especially ones that might have big consequences (like >> resizing a disk image) like this. >> >> Kay, am

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-25 Thread Kay Sievers
On Mon, Feb 25, 2013 at 11:43 PM, Greg KH wrote: > On Mon, Feb 25, 2013 at 11:39:52PM +0100, Kay Sievers wrote: >> On Mon, Feb 25, 2013 at 11:12 PM, Greg KH wrote: >> >> > Hm, I thought we were frowning apon running binaries from udev rules >> > these days, especially ones that might have big con

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-25 Thread Greg KH
On Mon, Feb 25, 2013 at 11:39:52PM +0100, Kay Sievers wrote: > On Mon, Feb 25, 2013 at 11:12 PM, Greg KH wrote: > > > Hm, I thought we were frowning apon running binaries from udev rules > > these days, especially ones that might have big consequences (like > > resizing a disk image) like this. >

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-25 Thread Kay Sievers
On Mon, Feb 25, 2013 at 11:12 PM, Greg KH wrote: > Hm, I thought we were frowning apon running binaries from udev rules > these days, especially ones that might have big consequences (like > resizing a disk image) like this. > > Kay, am I right? We removed most of them from the default setups, y

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-25 Thread Greg KH
On Fri, Feb 22, 2013 at 10:14:49AM +1030, Rusty Russell wrote: > Milos Vyletel writes: > > > When virtio-blk device is resized from host (using block_resize from QEMU) > > emit > > KOBJ_CHANGE uevent to notify guest about such change. This allows user to > > have > > custom udev rules which wou

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-25 Thread Rusty Russell
Milos Vyletel writes: > When virtio-blk device is resized from host (using block_resize from QEMU) > emit > KOBJ_CHANGE uevent to notify guest about such change. This allows user to have > custom udev rules which would take whatever action if such event occurs. As a > proof of concept I've creat

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-25 Thread Milos Vyletel
- Original Message - > On 02/22/2013 03:02 AM, Milos Vyletel wrote: > > When virtio-blk device is resized from host (using block_resize from QEMU) > > emit > > KOBJ_CHANGE uevent to notify guest about such change. This allows user to > > have > > custom udev rules which would take whatever

Re: [PATCH] virtio-blk: emit udev event when device is resized

2013-02-24 Thread Asias He
On 02/22/2013 03:02 AM, Milos Vyletel wrote: > When virtio-blk device is resized from host (using block_resize from QEMU) > emit > KOBJ_CHANGE uevent to notify guest about such change. This allows user to have > custom udev rules which would take whatever action if such event occurs. As a > proof

[PATCH] virtio-blk: emit udev event when device is resized

2013-02-21 Thread Milos Vyletel
When virtio-blk device is resized from host (using block_resize from QEMU) emit KOBJ_CHANGE uevent to notify guest about such change. This allows user to have custom udev rules which would take whatever action if such event occurs. As a proof of concept I've created simple udev rule that automatica