Skip to content

RFC block: Allow extending partition size online

Vivek Goyal dm-devel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

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

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] block: Allow extending partition size online

Hi,

This is a patch to allow extending the partition size online. There are two patches in the series. One is kernel patch and other is util-linux patch to add another command "extendpart".

Kernel patch adds another ioctl to increase the size of partition even when partition is in use. Currently limitation is that after modification to partition table, one needs to reboot the system/stop using the partition before size changes become visible. It would be nice to allow changing the size online, hence this change.

This ioctl changes only kernel view of data structures and does not touch ondisk data structures. So right way to expand the partition table would be to fist modify on disk copy using fdisk or so and then extend partition in kernel so that kernel's table and ondisk table are in sync.

Any feedback is welcome.

Thanks
Vivek