Displaying 20 results from an estimated 37 matches for "contentextendedpartition".
2016 Nov 25
3
[PATCH 1/2] daemon: allow to change the labels of swap partitions
---
daemon/daemon.h | 1 +
daemon/labels.c | 3 +++
daemon/swap.c | 21 +++++++++++++++++++++
generator/actions.ml | 4 ++++
4 files changed, 29 insertions(+)
diff --git a/daemon/daemon.h b/daemon/daemon.h
index 79a5288..2379e31 100644
--- a/daemon/daemon.h
+++ b/daemon/daemon.h
@@ -254,6 +254,7 @@ extern int64_t ntfs_minimum_size (const char *device);
/*-- in swap.c --*/
2016 Nov 25
0
[PATCH 2/2] resize: shrink/expand swap partitions
...esize.ml b/resize/resize.ml
index 7d06f18..59ee5bf 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -60,6 +60,7 @@ and partition_content =
| ContentPV of int64 (* physical volume (size of PV) *)
| ContentFS of string * int64 (* mountable filesystem (FS type, FS size) *)
| ContentExtendedPartition (* MBR extended partition *)
+ | ContentSwap (* Swap partition *)
and partition_operation =
| OpCopy (* copy it as-is, no resizing *)
| OpIgnore (* ignore it (create on target, but don't
@@ -104,11 +105,13 @@ and string_of_p...
2014 Sep 19
1
Re: [PATCH v2 08/13] resize: add function mbr_part_type
...I don't think it's necessary to store p_part_num in the main
partitions struct.
Instead you can get to the partition number using:
p.p_part.G.part_num
For example, mbr_part_type could be written:
let mbr_part_type x =
if x.p_part.G.part_num <= 4 && x.p_type <> ContentExtendedPartition then "primary"
[etc]
> + let mbr_part_type x =
> + if x.p_part_num <= 4 && x.p_type <> ContentExtendedPartition then "primary"
> + else if x.p_part_num <= 4 && x.p_type = ContentExtendedPartition then "extended"
> +...
2014 Jul 16
2
Re: virt-resize: support to MBR logical partitions and some question
...hat are performed in the order they are
> performed. This is vital for debugging this.
>
> (2) When the error happens, run `lsof'. Something like this:
>
> try
> g#part_add "/dev/sdb" (mbr_part_type p) p.p_target_start p.p_target_end;
> if p.p_type = ContentExtendedPartition then
> List.iter (
> fun p ->
> g#part_add "/dev/sdb" "logical" p.p_target_start p.p_target_end
> ) p.p_partitions
> with
> G.Error msg ->
> eprintf "lsof:\n---\n%s\n---\n" (g#debug "sh" [|...
2014 Sep 22
1
Re: [PATCH v3 5/7] resize: add function mbr_part_type
...ulate_target_partitions 1 start ~create_surplus:true partitions in
>
> + (* For GPT, the part type simply becomes partition name, so we don't
> + * handle the case specifically. *)
> + let mbr_part_type x =
> + if x.p_part.G.part_num <= 4l && x.p_type <> ContentExtendedPartition then "primary"
> + else if x.p_part.G.part_num <= 4l && x.p_type = ContentExtendedPartition then "extended"
> + else "logical" in
> +
> (* Now partition the target disk. *)
> List.iter (
> fun p ->
> - g#part_add...
2014 Sep 22
0
[PATCH v3 7/7] resize: add support to resize logical partitions
...esize(1).
let required = List.fold_left (
fun total p ->
let newsize =
+ (* don't count extended partition but logical partitions below,
+ * because we may extend and resize logical partitions at
+ * the same time. *)
+ if p.p_type = ContentExtendedPartition then 0L else
+ match p.p_operation with
+ | OpCopy | OpIgnore -> p.p_part.G.part_size
+ | OpDelete -> 0L
+ | OpResize newsize -> newsize in
+ total +^ newsize
+ ) 0L partitions in
+ let required = required +^ List.fold_left (
+...
2014 Oct 08
0
[PATCH V5 2/4] resize: add support to resize logical partitions
...esize(1).
let required = List.fold_left (
fun total p ->
let newsize =
+ (* don't count extended partition but logical partitions below,
+ * because we may extend and resize logical partitions at
+ * the same time. *)
+ if p.p_type = ContentExtendedPartition then 0L else
+ match p.p_operation with
+ | OpCopy | OpIgnore -> p.p_part.G.part_size
+ | OpDelete -> 0L
+ | OpResize newsize -> newsize in
+ total +^ newsize
+ ) 0L partitions in
+ let required = required +^ List.fold_left (
+...
2014 Oct 08
6
[PATCH V5 0/4] virt-resize: add support for resizing logical
Hi Rich,
This is v5 series to add support for resizing MBR logical partitions. please review. Thanks!
changes to v4:
1. add support to resize extended partition (--resize or --expand extended partition)
2. fix the problem of deficit of 512 bytes when expanding a logical partition
(this problem can be reproduced in v4 by only expanding a logical partition, without resizing any other
2014 Oct 08
0
[PATCH V5 3/4] resize: support resize extended partition
...newsize (alignment *^ sectsize) in
+ total +^ newsize
+ ) 0L logical_partitions in
+ let required_logical = required_logical +^ alignment *^ sectsize in
+ let required_extended = List.fold_left (
+ fun total p ->
+ let newsize =
+ match p.p_type with
+ | ContentExtendedPartition ->
+ (* resizing extended partition by --resize or --expand is supported *)
+ (match p.p_operation with
+ | OpResize newsize -> newsize
+ | _ -> p.p_part.G.part_size)
+ | _ -> 0L in
+ total +^ newsize
+ ) 0L partitions in
+
let...
2014 Oct 30
8
[PATCH v5 REBASE 0/4] virt-resize: add support for resizing logical
Hi Rich,
This is rebase of v5 series. Meanwhile, I found a bug when shrinking
partitions, and the fix is incuded in this version (patch 2).
Regards,
Hu
changes to v4:
1. add support to resize extended partition (--resize or --expand extended partition)
2. fix the problem of deficit of 512 bytes when expanding a logical partition
(this problem can be reproduced in v4 by only expanding a
2015 Jun 15
2
[PATCH] resize: make available expand method warnings more prominent
...| ContentFS (("xfs"), _) when !xfs_available -> true
- | ContentFS (fs, _) ->
- if verbose () then
- warning (f_"unknown/unavailable method for expanding filesystem %s")
- fs;
- false
+ | ContentFS (fs, _) -> false
| ContentExtendedPartition -> false
else
fun _ -> false
@@ -863,7 +859,17 @@ read the man page virt-resize(1).
p.p_name
(string_of_expand_content_method
(expand_content_method p.p_type))
- ) else "" in
+ ) else (
+...
2014 Sep 22
13
[PATCH v3 0/7] add support to resize MBR logical partitions
Hi Rich,
This is v3 series to add support for resizing MBR logical partitions.
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
2014 Sep 19
22
[PATCH v2 00/13] virt-resize: add support for resizing MBR logical partitions
Hi Rich,
This is v2 series to add support for resizing MBR logical partitions.
I found the reason of problem in v1 that parted reports error when
adding logical partitions, is that logical partitions are not aligned
to 2 sectors. This problem doesn't appear in v2.
This is for early review, because of:
1. I'm not sure the splitting of patches is appropriate or not, but
it's much
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
2018 Apr 12
4
[PATCH 0/2] Support for expanding f2fs partitions
Hi,
this small patch series exposes one of the utility in f2fs-tools, and
use it to expand f2fs partitions in virt-resize.
Thanks,
Pino Toscano (2):
New API: f2fs_expand
resize: expand f2fs partitions
daemon/Makefile.am | 1 +
daemon/f2fs.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++
generator/actions_core.ml | 9 +++++++++
generator/proc_nr.ml | 1 +
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
2014 Sep 22
0
[PATCH v3 5/7] resize: add function mbr_part_type
...rt-resize(1).
calculate_target_partitions 1 start ~create_surplus:true partitions in
+ (* For GPT, the part type simply becomes partition name, so we don't
+ * handle the case specifically. *)
+ let mbr_part_type x =
+ if x.p_part.G.part_num <= 4l && x.p_type <> ContentExtendedPartition then "primary"
+ else if x.p_part.G.part_num <= 4l && x.p_type = ContentExtendedPartition then "extended"
+ else "logical" in
+
(* Now partition the target disk. *)
List.iter (
fun p ->
- g#part_add "/dev/sdb" "primary...
2014 Sep 26
0
[PATCH v4 3/7] resize: add function mbr_part_type
...e(1).
calculate_target_partitions 1 start ~create_surplus:true partitions in
+ let mbr_part_type x =
+ (* for GPT, all partitions are regarded as Primary Partition. *)
+ if parttype = GPT then "primary"
+ else if x.p_part.G.part_num <= 4l && x.p_type <> ContentExtendedPartition then "primary"
+ else if x.p_part.G.part_num <= 4l && x.p_type = ContentExtendedPartition then "extended"
+ else "logical" in
+
(* Now partition the target disk. *)
List.iter (
fun p ->
- g#part_add "/dev/sdb" "primary...