Re: [PATCH] block: move capacity validation to blkpg_do_ioctl()

From: Jens Axboe
Date: Wed Mar 06 2024 - 10:37:26 EST



On Tue, 05 Mar 2024 11:21:32 +0800, Li Lingfeng wrote:
> Commit 6d4e80db4ebe ("block: add capacity validation in
> bdev_add_partition()") add check of partition's start and end sectors to
> prevent exceeding the size of the disk when adding partitions. However,
> there is still no check for resizing partitions now.
> Move the check to blkpg_do_ioctl() to cover resizing partitions.
>
>
> [...]

Applied, thanks!

[1/1] block: move capacity validation to blkpg_do_ioctl()
commit: b9355185d2aeef11f6e365dd98def82212637936

Best regards,
--
Jens Axboe