On Wed, 30 Nov 2022 18:56:53 +0100, Jan Kara wrote: > Since commit 10c70d95c0f2 ("block: remove the bd_openers checks in > blk_drop_partitions") we allow rereading of partition table although > there are users of the block device. This has an undesirable consequence > that e.g. if sda and sdb are assembled to a RAID1 device md0 with > partitions, BLKRRPART ioctl on sda will rescan partition table and > create sda1 device. This partition device under a raid device confuses > some programs (such as libstorage-ng used for initial partitioning for > distribution installation) leading to failures. > > [...] Applied, thanks! [1/1] block: Do not reread partition table on exclusively open device commit: 8d67fc20caf8b08ef6c90a04970846a950d46dd1 Best regards, -- Jens Axboe