So that we can decode it from tests. This should go away
at some point when encoding of these raw-encoded structures
is modernized.
Signed-off-by: John Spray <john.spray@redhat.com>
if (state_test(STATE_REJOINUNDEF))
f->dump_string("state", "rejoinundef");
}
+
+void ceph_file_layout_wrapper::dump(Formatter *f) const
+{
+ ::dump(static_cast<const ceph_file_layout&>(*this), f);
+}
+
return out;
}
+class ceph_file_layout_wrapper : public ceph_file_layout
+{
+public:
+ void encode(bufferlist &bl) const
+ {
+ ::encode(static_cast<const ceph_file_layout&>(*this), bl);
+ }
+
+ void decode(bufferlist::iterator &p)
+ {
+ ::decode(static_cast<ceph_file_layout&>(*this), p);
+ }
+
+ static void generate_test_instances(std::list<ceph_file_layout_wrapper*>& ls)
+ {
+ }
+ void dump(Formatter *f) const;
+};
TYPE(inode_backtrace_t)
TYPE(inode_backpointer_t)
TYPE(quota_info_t)
+TYPE(ceph_file_layout_wrapper)
#include "mds/CInode.h"
TYPE(InodeStore)