[Libguestfs] [PATCH v4 0/7] virt-resize: add support for resizing logical partitions

Hu Tao hutao at cn.fujitsu.com
Fri Sep 26 03:04:04 UTC 2014


Hi Rich,

This is v3 series to add support for resizing MBR logical partitions.

changes to v3:
  1. merge patch 1 and patch 3 in v3
  2. let mbr_part_type return 'primary' for GPT partitions
  3. add test for resizing logical partitions
  4. fix extending the extended partition (yet). see patch 7.

changes to v2:
  1. remove p_part_num
  2. remove filter_parts
  3. name the function calculate_target_partitions
  4. remove the code to restart guest introduced in v2

changes to v1:
  1. spit the patches so it's easier to review
  2. fix the parted error caused by unaligned logical partitions
  3. extend the content of logical partitions
  4. refactor to make logical partitions a seperate list

Hu Tao (7):
  resize: add function find_partitions
  resize: add function calculate_target_partitions
  resize: add function mbr_part_type
  resize: add partition type LogicalPartition
  resize: add support to resize logical partitions
  resize: add test for resizing logical partitions
  resize: support resize extended partition

 resize/resize.ml           | 155 ++++++++++++++++++++++++++++++++++++---------
 resize/test-virt-resize.sh |  17 +++++
 2 files changed, 142 insertions(+), 30 deletions(-)

-- 
1.9.3




More information about the Libguestfs mailing list