]> git.proxmox.com Git - pve-storage.git/commit - PVE/Diskmanage.pm
Diskmanage: also include partitions with get_disks if flag is set
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 26 Jan 2021 11:45:27 +0000 (12:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Feb 2021 12:52:20 +0000 (13:52 +0100)
commit2949c537d9fc152723a22c0880108056757388fe
tree5df837d006da9d3485b5ac63d6633619ecc4533d
parent6a1919b137aabd789623671f02fe4766750d0047
Diskmanage: also include partitions with get_disks if flag is set

and have a parent key for partitions, to be able to see the associated disk in
the result without having to rely on naming heuristics (just adding a number at
the end doesn't work for NVMes).

The disk's usage will not be based on the partitions usage if the flag is set,
but will simply be 'partitions'.

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