]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-mds: dump all info of ceph_file_layout, InodeStoreBase, frag_info_t, inode_t
authorsimon gao <simon29rock@gmail.com>
Tue, 23 Jul 2019 08:56:51 +0000 (04:56 -0400)
committersimon gao <simon29rock@gmail.com>
Tue, 23 Jul 2019 08:56:51 +0000 (04:56 -0400)
Signed-off-by: simon gao <simon29rock@gmail.com>
src/common/fs_types.cc
src/mds/CInode.cc
src/mds/mdstypes.cc
src/mds/mdstypes.h

index 6ad4b24c31264789eebff66487f15fb7f028dc13..feb9167264fb83bde2d4bd61b4496dc19d6eae2b 100644 (file)
@@ -19,6 +19,9 @@ void dump(const ceph_file_layout& l, Formatter *f)
 void dump(const ceph_dir_layout& l, Formatter *f)
 {
   f->dump_unsigned("dir_hash", l.dl_dir_hash);
+  f->dump_unsigned("unused1", l.dl_unused1);
+  f->dump_unsigned("unused2", l.dl_unused2);
+  f->dump_unsigned("unused3", l.dl_unused3);
 }
 
 
index c0f812a766c8ba949907c1c86afea331d0225aeb..a5bea40195209df12acc6f447235cd31f7ca74ea 100644 (file)
@@ -4029,6 +4029,20 @@ void InodeStoreBase::dump(Formatter *f) const
 {
   inode.dump(f);
   f->dump_string("symlink", symlink);
+
+  f->open_array_section("xattrs");
+  for (const auto& [key, val] : xattrs) {
+    f->open_object_section("xattr");
+    f->dump_string("key", key);
+    std::string v(val.c_str(), val.length());
+    f->dump_string("val", v);
+    f->close_section();
+  }
+  f->close_section();
+  f->open_object_section("dirfragtree");
+  dirfragtree.dump(f);
+  f->close_section(); // dirfragtree
+  
   f->open_array_section("old_inodes");
   for (const auto &p : old_inodes) {
     f->open_object_section("old_inode");
@@ -4039,9 +4053,8 @@ void InodeStoreBase::dump(Formatter *f) const
   }
   f->close_section();  // old_inodes
 
-  f->open_object_section("dirfragtree");
-  dirfragtree.dump(f);
-  f->close_section(); // dirfragtree
+  f->dump_unsigned("oldest_snap", oldest_snap);
+  f->dump_unsigned("damage_flags", damage_flags);
 }
 
 
index 6a207f85b4386a85f07861b921e6440fdf8dffc7..d65bfb5c00803ab38c6726b8613fb0781439e122 100644 (file)
@@ -43,6 +43,7 @@ void frag_info_t::dump(Formatter *f) const
   f->dump_stream("mtime") << mtime;
   f->dump_unsigned("num_files", nfiles);
   f->dump_unsigned("num_subdirs", nsubdirs);
+  f->dump_unsigned("change_attr", change_attr);
 }
 
 void frag_info_t::generate_test_instances(std::list<frag_info_t*>& ls)
index 9f701549693588741b4cb3e97976e29cc92cc0ef..49627231fa190e3664d6432b5b7116701838fe20 100644 (file)
@@ -848,6 +848,14 @@ void inode_t<Allocator>::dump(Formatter *f) const
   f->dump_unsigned("backtrace_version", backtrace_version);
 
   f->dump_string("stray_prior_path", stray_prior_path);
+  f->dump_unsigned("max_size_ever", max_size_ever);
+
+  f->open_object_section("quota");
+  quota.dump(f);
+  f->close_section();
+
+  f->dump_stream("last_scrub_stamp") << last_scrub_stamp;
+  f->dump_unsigned("last_scrub_version", last_scrub_version);
 }
 
 template<template<typename> class Allocator>