Re: [RFC PATCH 1/5] block/genhd: Notify udev about capacity change

From: Singh, Balbir
Date: Sun Dec 22 2019 - 20:55:38 EST


On Mon, 2019-12-23 at 01:40 +0000, Balbir Singh wrote:
> Allow block/genhd to notify user space (via udev) about disk size changes
> using a new helper disk_set_capacity(), which is a wrapper on top
> of set_capacity(). disk_set_capacity() will only notify via udev if
> the current capacity or the target capacity is not zero.
>
> Background:
>
> As a part of a patch to allow sending the RESIZE event on disk capacity
> change, Christoph (hch@xxxxxx) requested that the patch be made generic
> and the hacks for virtio block and xen block devices be removed and
> merged via a generic helper.
>
>

I messed up with linux-block ML address, I can resend with the right address
if needed. My apologies

Balbir Singh.