aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2022-08-23 18:38:19 +0800
committerJens Axboe <[email protected]>2022-09-03 11:29:03 -0600
commit748008e1da926a814cc0a054c81ca614408b1b0c (patch)
tree8592062c8d7b3593d507e276db016a651cb835be /lib
parent7a3d2225f1ae9e591fefd65c3bb1715dc54d96f1 (diff)
block: don't add partitions if GD_SUPPRESS_PART_SCAN is set
Commit b9684a71fca7 ("block, loop: support partitions without scanning") adds GD_SUPPRESS_PART_SCAN for replacing part function of GENHD_FL_NO_PART. But looks blk_add_partitions() is missed, since loop doesn't want to add partitions if GENHD_FL_NO_PART was set. And it causes regression on libblockdev (as called from udisks) which operates with the LO_FLAGS_PARTSCAN. Fixes the issue by not adding partitions if GD_SUPPRESS_PART_SCAN is set. Fixes: b9684a71fca7 ("block, loop: support partitions without scanning") Signed-off-by: Ming Lei <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions