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:
Kefu Chai 2019-08-23 13:13:32 +08:00 committed by GitHub
commit b3c1c4c1cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();