]> git.proxmox.com Git - pve-storage.git/commit - PVE/Diskmanage.pm
Diskmanage: introduce usage helper
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 26 Jan 2021 11:45:23 +0000 (12:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Feb 2021 12:52:20 +0000 (13:52 +0100)
commit01aa7d75fd4c0b5f221151b5f98bb1b8d5ebbfac
tree907096d004dabad0724bcb6398b38d5642f543c8
parent89c27ea8ab2ca77279d365231fc52552d38ff79a
Diskmanage: introduce usage helper

Note that this is a slight behavior change, because now the first
partition's usage which is not simply 'partition' will become the disk's
usage. Previously, if any partition was 'mounted', it would become the disk's
usage, then 'LVM', 'ZFS', etc.

A partitions usage defaults to 'partition' if nothing more specific can be
found, and is never treated as unused for now.

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