mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 13:36:37 +00:00
Add %-used and min_size to "pveceph lspools" command
Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
parent
dae96e48dc
commit
180d612bfa
@ -159,9 +159,12 @@ our $cmddef = {
|
|||||||
lspools => [ 'PVE::API2::Ceph', 'lspools', [], { node => $nodename }, sub {
|
lspools => [ 'PVE::API2::Ceph', 'lspools', [], { node => $nodename }, sub {
|
||||||
my $res = shift;
|
my $res = shift;
|
||||||
|
|
||||||
printf("%-20s %10s %10s %20s\n", "Name", "size", "pg_num", "used");
|
printf("%-20s %10s %10s %10s %10s %20s\n", "Name", "size", "min_size",
|
||||||
|
"pg_num", "%-used", "used");
|
||||||
foreach my $p (sort {$a->{pool_name} cmp $b->{pool_name}} @$res) {
|
foreach my $p (sort {$a->{pool_name} cmp $b->{pool_name}} @$res) {
|
||||||
printf("%-20s %10d %10d %20d\n", $p->{pool_name}, $p->{size}, $p->{pg_num}, $p->{bytes_used});
|
printf("%-20s %10d %10d %10d %10.2f %20d\n", $p->{pool_name},
|
||||||
|
$p->{size}, $p->{min_size}, $p->{pg_num},
|
||||||
|
$p->{percent_used}, $p->{bytes_used});
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
createpool => [ 'PVE::API2::Ceph', 'createpool', ['name'], { node => $nodename }],
|
createpool => [ 'PVE::API2::Ceph', 'createpool', ['name'], { node => $nodename }],
|
||||||
|
Loading…
Reference in New Issue
Block a user