| 586 | } |
| 587 | |
| 588 | void Client::dump_cache(Formatter *f) |
| 589 | { |
| 590 | set<Inode*> did; |
| 591 | |
| 592 | ldout(cct, 1) << __func__ << dendl; |
| 593 | |
| 594 | if (f) |
| 595 | f->open_array_section("cache"); |
| 596 | |
| 597 | if (root) |
| 598 | dump_inode(f, root.get(), did, true); |
| 599 | |
| 600 | // make a second pass to catch anything disconnected |
| 601 | for (auto it = inode_map.begin(); it != inode_map.end(); ++it) { |
| 602 | if (did.count(it->second)) |
| 603 | continue; |
| 604 | dump_inode(f, it->second, did, true); |
| 605 | } |
| 606 | |
| 607 | if (f) |
| 608 | f->close_section(); |
| 609 | } |
| 610 | |
| 611 | void Client::dump_status(Formatter *f) |
| 612 | { |
no test coverage detected