Re: [Libguestfs] [PATCH v2 02/11] resize: add logical_partitions and extended_partition

2015-05-29 Thread Chen, Hanxiao
-Original Message- From: libguestfs-boun...@redhat.com [mailto:libguestfs-boun...@redhat.com] On Behalf Of Richard W.M. Jones Sent: Thursday, May 28, 2015 7:18 PM To: Pino Toscano Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] [PATCH v2 02/11] resize: add logical_partitions

Re: [Libguestfs] [PATCH v2 02/11] resize: add logical_partitions and extended_partition

2015-05-28 Thread Richard W.M. Jones
On Thu, May 28, 2015 at 01:13:28PM +0200, Pino Toscano wrote: In data giovedì 28 maggio 2015 12:06:18, Richard W.M. Jones ha scritto: + let logical_partitions = +List.filter (fun p - parttype = MBR p.p_mbr_p_type = LogicalPartition) partitions in + (* Filter out logical

Re: [Libguestfs] [PATCH v2 02/11] resize: add logical_partitions and extended_partition

2015-05-28 Thread Richard W.M. Jones
On Wed, May 20, 2015 at 06:51:28AM -0400, Chen Hanxiao wrote: For MBR, logical partitions laid inside extended partition. Add 3 variables to describe this: - partitions flat list of primary partitions (as now, the global 'partitions'). extended partitions is essentially primary

Re: [Libguestfs] [PATCH v2 02/11] resize: add logical_partitions and extended_partition

2015-05-28 Thread Pino Toscano
In data giovedì 28 maggio 2015 12:06:18, Richard W.M. Jones ha scritto: + let logical_partitions = +List.filter (fun p - parttype = MBR p.p_mbr_p_type = LogicalPartition) partitions in + (* Filter out logical partitions. See note above. *) + let partitions = +(* for GPT,

[Libguestfs] [PATCH v2 02/11] resize: add logical_partitions and extended_partition

2015-05-20 Thread Chen Hanxiao
For MBR, logical partitions laid inside extended partition. Add 3 variables to describe this: - partitions flat list of primary partitions (as now, the global 'partitions'). extended partitions is essentially primary partition - logical_partitions flat list of logical partitions -