[pve-devel] [PATCH storage] Diskmanage: check for extended partitions
Dominik Csapak
d.csapak at proxmox.com
Tue May 3 13:08:47 CEST 2022
those would not get assinged a usage and thus appear in the list
when we want to select a partition (e.g. for creating a zpool)
since we cannot do anything with such a partition, return the usage
'Extended Partition' for these.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/Diskmanage.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm
index d67cc6b..f693d00 100644
--- a/PVE/Diskmanage.pm
+++ b/PVE/Diskmanage.pm
@@ -647,6 +647,8 @@ sub get_disks {
if $parttype eq 'c12a7328-f81f-11d2-ba4b-00a0c93ec93b';
return 'ZFS reserved'
if $parttype eq '6a945a3b-1dd2-11b2-99a6-080020736631';
+ return 'Extended Partition'
+ if $parttype eq '0x5';
}
my $fstype = $info->{fstype};
--
2.30.2
More information about the pve-devel
mailing list