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