MCPcopy Create free account
hub / github.com/ceph/ceph / dump_cache

Method dump_cache

src/client/Client.cc:588–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588void 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
611void Client::dump_status(Formatter *f)
612{

Callers 1

callMethod · 0.45

Calls 6

open_array_sectionMethod · 0.45
getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
countMethod · 0.45
close_sectionMethod · 0.45

Tested by

no test coverage detected