]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: add UBLK_F_NO_AUTO_PART_SCAN feature flag
authorMing Lei <ming.lei@redhat.com>
Thu, 29 Jan 2026 16:19:51 +0000 (00:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 Jan 2026 13:36:41 +0000 (06:36 -0700)
commit8443e2087e7002fa25984faad6bbf5f63b280645
tree58d6673476c8cf331bd21869ea007b39e1cf724c
parent66d3af8d5d678d221776a1886baec8d78293592c
ublk: add UBLK_F_NO_AUTO_PART_SCAN feature flag

Add a new feature flag UBLK_F_NO_AUTO_PART_SCAN to allow users to suppress
automatic partition scanning when starting a ublk device.

This is useful for some cases in which user don't want to scan
partitions.

Users still can manually trigger partition scanning later when appropriate
using standard tools (e.g., partprobe, blockdev --rereadpt).

Reported-by: Yoav Cohen <yoav@nvidia.com>
Link: https://lore.kernel.org/linux-block/DM4PR12MB63280C5637917C071C2F0D65A9A8A@DM4PR12MB6328.namprd12.prod.outlook.com/
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c
include/uapi/linux/ublk_cmd.h