Thread (4 messages) 4 messages, 3 authors, 2022-09-03

Re: [PATCH] block: don't add partitions if GD_SUPPRESS_PART_SCAN is set

From: Christoph Hellwig <hch@lst.de>
Date: 2022-08-23 18:19:44

On Tue, Aug 23, 2022 at 06:38:19PM +0800, Ming Lei wrote:
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 <redacted>
Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help