I performed this test in EC2:

- Launched an instance of latest Xenial AMI in us-west-1 (ami-2afbde4a, kernel 
4.4.0-1013-aws) with 8GB root EBS volume
- Created a second EBS volume, 100GB, and attached as /dev/sdf.
- Ran sudo udevadm monitor --kernel --udev and resized both volumes. No udev 
events were registered.

I repeated the test with the test kernel in comment #1 (4.4.0-1016-aws). Upon 
resizing both volumes, this output was captured:
KERNEL[100.355617] change   /devices/vbd-768/block/xvda (block)
UDEV  [100.373979] change   /devices/vbd-768/block/xvda (block)
KERNEL[127.255821] change   /devices/vbd-51792/block/xvdf (block)
UDEV  [127.269313] change   /devices/vbd-51792/block/xvdf (block)

The volume modifications were causing udev events to be emitted.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1683878

Title:
  blkfront: add uevent for size change

Status in cloud-images:
  New
Status in cloud-images x-series series:
  New
Status in linux package in Ubuntu:
  Triaged
Status in linux-aws package in Ubuntu:
  In Progress
Status in linux source package in Xenial:
  New
Status in linux-aws source package in Xenial:
  In Progress

Bug description:
  A Xen blkfront(xen-blkfront:) patch has been submitted upstream, regarding 
the resizing of a blkfront device from dom0. This patch would emit a 
KOBJ_CHANGE uevent, to notify a guest of the change. This allows for custom 
udev rules, such
  as automatically resizing a filesystem, when an event occurs. 

  We are requesting that this patch be cherry-picked/backported to the
  supported Ubuntu kernels.

  Reference: https://patchwork.kernel.org/patch/9676017/
  Reference: https://lkml.org/lkml/2017/4/11/736

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1683878/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to