| 39 | } |
| 40 | |
| 41 | void SnapRealm::dump(Formatter *f) const |
| 42 | { |
| 43 | f->dump_stream("ino") << ino; |
| 44 | f->dump_int("nref", nref); |
| 45 | f->dump_stream("created") << created; |
| 46 | f->dump_stream("seq") << seq; |
| 47 | f->dump_stream("parent_ino") << parent; |
| 48 | f->dump_stream("parent_since") << parent_since; |
| 49 | |
| 50 | f->open_array_section("prior_parent_snaps"); |
| 51 | for (vector<snapid_t>::const_iterator p = prior_parent_snaps.begin(); p != prior_parent_snaps.end(); ++p) |
| 52 | f->dump_stream("snapid") << *p; |
| 53 | f->close_section(); |
| 54 | f->open_array_section("my_snaps"); |
| 55 | for (vector<snapid_t>::const_iterator p = my_snaps.begin(); p != my_snaps.end(); ++p) |
| 56 | f->dump_stream("snapid") << *p; |
| 57 | f->close_section(); |
| 58 | |
| 59 | f->open_array_section("children"); |
| 60 | for (set<SnapRealm*>::const_iterator p = pchildren.begin(); p != pchildren.end(); ++p) |
| 61 | f->dump_stream("child") << (*p)->ino; |
| 62 | f->close_section(); |
| 63 | } |
nothing calls this directly
no test coverage detected