Re: [Libguestfs] [PATCH v2 04/11] resize: add support for logical partitions for calculate_surplus

2015-05-29 Thread Chen, Hanxiao
-Original Message- From: Richard W.M. Jones [mailto:rjo...@redhat.com] Sent: Thursday, May 28, 2015 7:16 PM To: Chen, Hanxiao/陈 晗霄 Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] [PATCH v2 04/11] resize: add support for logical partitions for calculate_surplus On Thu, May

Re: [Libguestfs] [PATCH v2 04/11] resize: add support for logical partitions for calculate_surplus

2015-05-28 Thread Richard W.M. Jones
On Thu, May 28, 2015 at 12:11:17PM +0100, Richard W.M. Jones wrote: On Wed, May 20, 2015 at 06:51:30AM -0400, Chen Hanxiao wrote: Add support for logical partitions. - count number of logical_partition (we've split partitions list) - don't count size of extended partition For it'll

Re: [Libguestfs] [PATCH v2 04/11] resize: add support for logical partitions for calculate_surplus

2015-05-28 Thread Richard W.M. Jones
On Wed, May 20, 2015 at 06:51:30AM -0400, Chen Hanxiao wrote: Add support for logical partitions. - count number of logical_partition (we've split partitions list) - don't count size of extended partition For it'll duplicate with logical partition, we'll count it later - we need at leat

[Libguestfs] [PATCH v2 04/11] resize: add support for logical partitions for calculate_surplus

2015-05-20 Thread Chen Hanxiao
Add support for logical partitions. - count number of logical_partition (we've split partitions list) - don't count size of extended partition For it'll duplicate with logical partition, we'll count it later - we need at leat 1 gap between logical partitions. so --aligment=1 will be