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:
Richard W.M. Jones
2024-05-10 15:23:35 +01:00
parent c749314646
commit cbfe36b7c7
2 changed files with 3 additions and 4 deletions

View File

@@ -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. *)