mirror of
https://github.com/ceph/ceph
synced 2025-01-11 05:29:51 +00:00
Merge pull request #28488 from liuchang0812/show-pool-id-in-pool-ls-cmd
mon: show pool id in pool ls command Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
b3c1c4c1cd
@ -5845,6 +5845,7 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op)
|
||||
if (f) {
|
||||
if (detail == "detail") {
|
||||
f->open_object_section("pool");
|
||||
f->dump_int("pool_id", it->first);
|
||||
f->dump_string("pool_name", osdmap.get_pool_name(it->first));
|
||||
it->second.dump(f.get());
|
||||
f->close_section();
|
||||
|
Loading…
Reference in New Issue
Block a user