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:
committed by
Dietmar Maurer
parent
32c0a1d59b
commit
41aacc6cde
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user