Re: [PATCH 2/2] block: avoid to drop & re-add partitions if partitions aren't changed

From: Christoph Hellwig
Date: Fri Feb 05 2021 - 02:15:28 EST


On Fri, Feb 05, 2021 at 10:17:08AM +0800, Ming Lei wrote:
> block ioctl(BLKRRPART) always drops current partitions and adds
> partitions again, even though there isn't any change in partitions table.
>
> ioctl(BLKRRPART) may be called by systemd-udevd and some disk utilities
> frequently.

Err, why? We should probably fix udev to not do stupid things first.