]> git.proxmox.com Git - pve-storage.git/commit
api: disks: initgpt: explicitly abort for partitions
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 6 Oct 2021 09:18:44 +0000 (11:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 Oct 2021 12:39:26 +0000 (14:39 +0200)
commitcc884f73d8527722df56f11acb3eced13cd4f2e4
tree6df08ea317583312166ed39c0c8260ed560e11dc
parentff91cfae35a7530472c2e67f9470c932b9ce8324
api: disks: initgpt: explicitly abort for partitions

In preparation to extend disk_is_used to support partitions. Without
this new check, initgpt would also allow partitions once disk_is_used
supports partitions, which is not desirable.

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