| 9 | #include "common/Formatter.h" |
| 10 | |
| 11 | void MetaRequest::dump(Formatter *f) const |
| 12 | { |
| 13 | auto age = std::chrono::duration<double>(ceph_clock_now() - op_stamp); |
| 14 | |
| 15 | f->dump_unsigned("tid", tid); |
| 16 | f->dump_string("op", ceph_mds_op_name(head.op)); |
| 17 | f->dump_stream("path") << path; |
| 18 | f->dump_stream("path2") << path2; |
| 19 | if (_inode) |
| 20 | f->dump_stream("ino") << _inode->ino; |
| 21 | if (_old_inode) |
| 22 | f->dump_stream("old_ino") << _old_inode->ino; |
| 23 | if (_other_inode) |
| 24 | f->dump_stream("other_ino") << _other_inode->ino; |
| 25 | if (target) |
| 26 | f->dump_stream("target_ino") << target->ino; |
| 27 | if (_dentry) |
| 28 | f->dump_string("dentry", _dentry->name); |
| 29 | if (_old_dentry) |
| 30 | f->dump_string("old_dentry", _old_dentry->name); |
| 31 | f->dump_stream("hint_ino") << inodeno_t(head.ino); |
| 32 | |
| 33 | f->dump_stream("sent_stamp") << sent_stamp; |
| 34 | f->dump_float("age", age.count()); |
| 35 | f->dump_int("mds", mds); |
| 36 | f->dump_int("resend_mds", resend_mds); |
| 37 | f->dump_int("send_to_auth", send_to_auth); |
| 38 | f->dump_unsigned("sent_on_mseq", sent_on_mseq); |
| 39 | f->dump_int("retry_attempt", retry_attempt); |
| 40 | |
| 41 | f->dump_int("got_unsafe", got_unsafe); |
| 42 | |
| 43 | f->dump_unsigned("uid", head.caller_uid); |
| 44 | f->dump_unsigned("gid", head.caller_gid); |
| 45 | |
| 46 | f->dump_unsigned("oldest_client_tid", head.oldest_client_tid); |
| 47 | f->dump_unsigned("mdsmap_epoch", head.mdsmap_epoch); |
| 48 | f->dump_unsigned("flags", head.flags); |
| 49 | f->dump_unsigned("num_retry", head.ext_num_retry); |
| 50 | f->dump_unsigned("num_fwd", head.ext_num_fwd); |
| 51 | f->dump_unsigned("num_releases", head.num_releases); |
| 52 | |
| 53 | f->dump_int("abort_rc", abort_rc); |
| 54 | |
| 55 | f->dump_unsigned("owner_uid", head.owner_uid); |
| 56 | f->dump_unsigned("owner_gid", head.owner_gid); |
| 57 | } |
| 58 | |
| 59 | void MetaRequest::set_dentry(DentryRef dn) { |
| 60 | ceph_assert(_dentry.get() == NULL); |
nothing calls this directly
no test coverage detected