search for: is_logical_partition

Displaying 7 results from an estimated 7 matches for "is_logical_partition".

2015 May 28
2
Re: [PATCH v2 02/11] resize: add logical_partitions and extended_partition
...is no Extended Partition or Logical Partition. *) > + List.filter (fun p -> parttype <> MBR || p.p_mbr_p_type <> LogicalPartition) partitions in Although this is code is correct, it is clearer and shorter to write the test using a separate function, so it would become: let is_logical_partition p = parttype = MBR && p.p_mbr_p_type = LogicalPartition in let logical_partitions = List.filter is_logical_partition partitions in let partitions = List.filter (fun p -> not (is_logical_partition p)) partitions in Rich. -- Richard Jones, Virtualization Group, Red Hat htt...
2015 May 28
1
Re: [PATCH v2 02/11] resize: add logical_partitions and extended_partition
...> + List.filter (fun p -> parttype <> MBR || p.p_mbr_p_type <> LogicalPartition) partitions in > > > > Although this is code is correct, it is clearer and shorter to write > > the test using a separate function, so it would become: > > > > let is_logical_partition p = > > parttype = MBR && p.p_mbr_p_type = LogicalPartition > > in > > let logical_partitions = List.filter is_logical_partition partitions in > > let partitions = > > List.filter (fun p -> not (is_logical_partition p)) partitions in > >...
2015 May 28
0
Re: [PATCH v2 02/11] resize: add logical_partitions and extended_partition
...ogical Partition. *) > > + List.filter (fun p -> parttype <> MBR || p.p_mbr_p_type <> LogicalPartition) partitions in > > Although this is code is correct, it is clearer and shorter to write > the test using a separate function, so it would become: > > let is_logical_partition p = > parttype = MBR && p.p_mbr_p_type = LogicalPartition > in > let logical_partitions = List.filter is_logical_partition partitions in > let partitions = > List.filter (fun p -> not (is_logical_partition p)) partitions in Or, even better: let logical_pa...
2015 May 20
15
[PATCH v2 00/11] virt-resize: add support for resizing MBR logical partitions
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. v2: 1) Add 3 variables to describe relationship of logical and extended partitions: - partitions flat list of primary partitions (as now, the global
2015 Jun 03
13
[PATCH v3 00/11] virt-resize: add support for resizing MBR logical partitions
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. v3: 1) rewrite partitions/logical_partitions/extended_partition section by the comments from Rich and Pino. 2) in 03/11 introduce logical_align for
2015 Jun 17
13
[PATCH v4 00/11] virt-resize: add support for resizing MBR logical partitions
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. v4: rebase on upstream. v3: 1) rewrite partitions/logical_partitions/extended_partition section by the comments from Rich and Pino. 2) in 03/11
2015 Jul 06
13
[PATCH rebase v4 00/11] virt-resize: add support for resizing MBR logical partitions
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. v4: rebase on upstream. v3: 1) rewrite partitions/logical_partitions/extended_partition section by the comments from Rich and Pino. 2) in 03/11