]> git.proxmox.com Git - pve-storage.git/commit - PVE/Diskmanage.pm
diskmanage: add change_parttype and is_partition helpers
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 6 Oct 2021 09:18:41 +0000 (11:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Oct 2021 12:39:26 +0000 (14:39 +0200)
commite8df8fb179da6ba528e6d6582e51b30c3aa4583c
treeec12870fc60e577419e39fafc5d0deda8a551201
parent9524b31ee3a68526d157dabc0af8a7b964cd786c
diskmanage: add change_parttype and is_partition helpers

For change_parttype, only GPT-partitioned disks are supported, as I
didn't see an option for sgdisk to make it also work with
MBR-partitioned disks. And while sfdisk could be used instead (or
additionally) it would be a new dependency, and AFAICS require some
conversion of partition type GUIDs to MBR types on our part.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Diskmanage.pm