Fix #1542: show storage utilization per pool

- get storage utilization per pool
 - use librados2-perl for pool status
 - add librados2-perl as build-depends and depends in debian/control

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
Alwin Antreich
2018-04-13 14:28:31 +02:00
committed by Dietmar Maurer
parent 32c0a1d59b
commit 41aacc6cde
3 changed files with 56 additions and 21 deletions

View File

@ -1065,8 +1065,7 @@ sub storage_info {
next;
}
my ($total, $avail, $used, $active);
eval { ($total, $avail, $used, $active) = $plugin->status($storeid, $scfg, $cache); };
my ($total, $avail, $used, $active) = eval { $plugin->status($storeid, $scfg, $cache); };
warn $@ if $@;
next if !$active;
$info->{$storeid}->{total} = int($total);