]> git.baikalelectronics.ru Git - kernel.git/commit
blkfront: add uevent for size change
authorMarc Olson <marcolso@amazon.com>
Tue, 11 Apr 2017 19:24:09 +0000 (12:24 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 18 Apr 2017 15:10:55 +0000 (11:10 -0400)
commitf1b409c76a888ac20124057ec30d2c3456b877d0
tree65d4ebcda8ac1811ed7517db7feff02aac009380
parentb1cb546802086c2044f74a9158ad6a5291a3ef80
blkfront: add uevent for size change

When a blkfront device is resized from dom0, emit a KOBJ_CHANGE uevent to
notify the guest about the change. This allows for custom udev rules, such
as automatically resizing a filesystem, when an event occurs.

With this patch you get these udev

KERNEL[577.206230] change   /devices/vbd-51728/block/xvdb (block)
UDEV  [577.226218] change   /devices/vbd-51728/block/xvdb (block)

Signed-off-by: Marc Olson <marcolso@amazon.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c