On Thu, Apr 23, 2015 at 02:14:12AM -0400, Chen Hanxiao wrote:
In current virt-resize, only primary partitions(including extended partition) are supported. They are collected in an array for resize operations. Logical partitions are not supported.
This series add support for resizing logical partitions.
Original patches by Hu Tao at: https://www.redhat.com/archives/libguestfs/2014-October/msg00238.html
Chen Hanxiao (10): resize: don't filter out logical partitions resize: don't count new size of logical and extended partition resize: caculate the size of logical partitions resize: update calculate_target_partitions for logical partitions resize: calculate location of the partitions of logical partition resize: skip overlap check for logical partitions resize: parted logical partitions resize: caculate surplus for resize extended partition resize: support resize extended partition resize: test: add support for resizing extended and logical partitions
resize/resize.ml | 144 ++++++++++++++++++++++++++++++++++----------- resize/test-virt-resize.pl | 32 ++-------- 2 files changed, 114 insertions(+), 62 deletions(-)
No, this patch series cannot be applied. It doesn't model what extended / logical partitions look like. It's very hard to understand what changes are being made. The commits are not grouped in a way that makes them easily understandable to me. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html