mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: part_get_gpt_type: Remove unhelpful MBR fallback behaviour
This was an accident of the parted implementation, and wasn't really
used anywhere. Remove it.
(cherry picked from commit 2811e42b43)
This commit is contained in:
@@ -111,8 +111,9 @@ and is_partition_can_hold_filesystem partition =
|
||||
false
|
||||
else if is_mbr_bogus parttype device partnum then
|
||||
true
|
||||
else if is_mbr then
|
||||
true
|
||||
else (
|
||||
(* MBR partition id will be converted into corresponding GPT type. *)
|
||||
let gpt_type = Parted.part_get_gpt_type device partnum in
|
||||
match gpt_type with
|
||||
(* Windows Logical Disk Manager metadata partition. *)
|
||||
|
||||
@@ -8118,9 +8118,7 @@ for a useful list of type GUIDs." };
|
||||
];
|
||||
shortdesc = "get the type GUID of a GPT partition";
|
||||
longdesc = "\
|
||||
Return the type GUID of numbered GPT partition C<partnum>. For MBR partitions,
|
||||
return an appropriate GUID corresponding to the MBR type. Behaviour is undefined
|
||||
for other partition types." };
|
||||
Return the type GUID of numbered GPT partition C<partnum>." };
|
||||
|
||||
{ defaults with
|
||||
name = "part_set_gpt_attributes"; added = (1, 21, 1);
|
||||
|
||||
Reference in New Issue
Block a user