[pve-devel] [PATCH v2 storage] Diskmanage: also set type for partitions

Fabian Ebner f.ebner at proxmox.com
Tue Feb 9 09:04:32 CET 2021


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---

New in v2

Forgot to include this one yesterday. I chose to simply use the generic
'partition', because the information whether it's GPT or not is already present.

 PVE/Diskmanage.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm
index 78f7865..e356fb3 100644
--- a/PVE/Diskmanage.pm
+++ b/PVE/Diskmanage.pm
@@ -668,6 +668,7 @@ sub get_disks {
 	    $partitions->{$part}->{devpath} = "$partpath/$part";
 	    $partitions->{$part}->{parent} = "$devpath";
 	    $partitions->{$part}->{gpt} = $data->{gpt};
+	    $partitions->{$part}->{type} = 'partition';
 	    $partitions->{$part}->{size} =
 		get_sysdir_size("$sysdir/$part") // 0;
 	    $partitions->{$part}->{used} =
-- 
2.20.1





More information about the pve-devel mailing list