Displaying 2 results from an estimated 2 matches for "gpt_id".
Did you mean:
get_id
2014 Feb 03
2
[PATCH] resize: properly restore GPT partition types
If there is a GPT partition layout, then what should be read and
restored for each partition is the GPT type and not the MBR ID.
Related to RHBZ#1060404.
---
resize/resize.ml | 46 +++++++++++++++++++++++++++++++++++-----------
1 file changed, 35 insertions(+), 11 deletions(-)
diff --git a/resize/resize.ml b/resize/resize.ml
index 8683df7..a2670e5 100644
--- a/resize/resize.ml
+++
2014 Feb 03
0
Re: [PATCH] resize: properly restore GPT partition types
..._ ->
> + (* This should not happen. *)
> + assert false
You can actually make it not happen by having a clearer type. I
believe something along these lines should work:
type partition = {
...
p_partition_id : partition_id;
...
}
and partition_id = No_ID | MBR_ID of int | GPT_ID of string
> + match parttype with
> + | GPT ->
> + (match p.p_gpt_type with
> + | None -> ()
> + | Some gpt_type ->
> + g#part_set_gpt_type "/dev/sdb" p.p_target_partnum gpt_type
> + )
> + | MBR ->
&g...