mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
Merge pull request #11654 from hjwsm1989/fix
mon: print the num_pools and num_objects in 'ceph -s -f json/json-p… Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
134102127e
@ -1594,6 +1594,8 @@ void PGMap::print_summary(Formatter *f, ostream *out) const
|
||||
if (f) {
|
||||
f->dump_unsigned("version", version);
|
||||
f->dump_unsigned("num_pgs", pg_stat.size());
|
||||
f->dump_unsigned("num_pools", pg_pool_sum.size());
|
||||
f->dump_unsigned("num_objects", pg_sum.stats.sum.num_objects);
|
||||
f->dump_unsigned("data_bytes", pg_sum.stats.sum.num_bytes);
|
||||
f->dump_unsigned("bytes_used", osd_sum.kb_used * 1024ull);
|
||||
f->dump_unsigned("bytes_avail", osd_sum.kb_avail * 1024ull);
|
||||
|
Loading…
Reference in New Issue
Block a user