Hi Guys,
The two patches changes block ioctl(BLKRRPART) for avoiding drop &
re-add partitions if partitions state isn't changed. The current
behavior confuses userspace because partitions can disappear anytime
when calling into ioctl(BLKRRPART).
V2:
- don't save partitions state, and just check if current partition
state is changed against partition devices
Ming Lei (4):
block: define parsed_partitions.flags as 'unsigned char'
block: store partition flags into block_device
block: re-organize blk_add_partitions
block: avoid to drop & re-add partitions if partitions aren't changed
block/partitions/check.h | 2 +-
block/partitions/core.c | 126 ++++++++++++++++++++++++++++++++++----
fs/block_dev.c | 30 ++++-----
include/linux/blk_types.h | 1 +
include/linux/genhd.h | 1 +
5 files changed, 132 insertions(+), 28 deletions(-)
Cc: Ewan D. Milne <redacted>
--
2.29.2