Merge PR #39728 into master

* refs/pull/39728/head:
	mon/PGMap: include the per-pool usage breakdown in pg dump

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Sage Weil 2021-02-27 10:10:18 -05:00
commit 9abdf95816

View File

@ -1621,6 +1621,16 @@ void PGMap::dump_osd_stats(ceph::Formatter *f, bool with_net) const
f->close_section();
}
f->close_section();
f->open_array_section("pool_statfs");
for (auto& p : pool_statfs) {
f->open_object_section("item");
f->dump_int("poolid", p.first.first);
f->dump_int("osd", p.first.second);
p.second.dump(f);
f->close_section();
}
f->close_section();
}
void PGMap::dump_osd_ping_times(ceph::Formatter *f) const