Skip to content

block: avoid to drop & re-add partitions if partitions aren't changed

Ming Lei linux-block lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest0 of 3 patches 3 repliesIn review
  2. v12 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- don't save partitions state, and just check if current partition state is changed against partition devices

Patches in v2 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchChaitanya Kulkarni
SeriesR-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/3] block: avoid to drop & re-add partitions if partitions aren't changed

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 <[email protected]>
Signature · 1 line
2.29.2