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

Method dump

src/mds/InoTable.cc:164–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void InoTable::dump(Formatter *f) const
165{
166 f->open_object_section("inotable");
167
168 f->open_array_section("projected_free");
169 for (interval_set<inodeno_t>::const_iterator i = projected_free.begin(); i != projected_free.end(); ++i) {
170 f->open_object_section("range");
171 f->dump_int("start", (*i).first);
172 f->dump_int("len", (*i).second);
173 f->close_section();
174 }
175 f->close_section();
176
177 f->open_array_section("free");
178 for (interval_set<inodeno_t>::const_iterator i = free.begin(); i != free.end(); ++i) {
179 f->open_object_section("range");
180 f->dump_int("start", (*i).first);
181 f->dump_int("len", (*i).second);
182 f->close_section();
183 }
184 f->close_section();
185
186 f->close_section();
187}
188
189
190std::list<InoTable> InoTable::generate_test_instances()

Callers

nothing calls this directly

Calls 6

open_object_sectionMethod · 0.45
open_array_sectionMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
dump_intMethod · 0.45
close_sectionMethod · 0.45

Tested by

no test coverage detected