[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Online resize of virtio-blk device does not emit udev e
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] Online resize of virtio-blk device does not emit udev event |
Date: |
Wed, 20 Feb 2013 10:47:34 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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 I jump into patching kernel my question is whether it makes sense to
> have
> such uevent? I surely can use a way how to detect capacity change from
> userspace.
I suggest checking how other block drivers (including the device-mapper
and scsi layers) handle resize. Perhaps virtio_blk.c can follow an
existing approach.
Stefan