]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/CDentry: add path_ino and is_primary in the dump() 10119/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 4 Jul 2016 12:04:38 +0000 (20:04 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 4 Jul 2016 12:04:38 +0000 (20:04 +0800)
path_ino and is_primary are  main reference information in the dump(),
so add their

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mds/CDentry.cc

index 12820bd45c8e519d6ad478399cdb606f4e9d78cd..2b953a03c3491d0f911dacae0a3880559fd97524 100644 (file)
@@ -559,11 +559,13 @@ void CDentry::dump(Formatter *f) const
   make_path(path);
 
   f->dump_string("path", path.get_path());
+  f->dump_unsigned("path_ino", path.get_ino().val);
   f->dump_unsigned("snap_first", first);
   f->dump_unsigned("snap_last", last);
   
-  f->dump_bool("is_null", get_linkage()->is_null());
+  f->dump_bool("is_primary", get_linkage()->is_primary());
   f->dump_bool("is_remote", get_linkage()->is_remote());
+  f->dump_bool("is_null", get_linkage()->is_null());
   f->dump_bool("is_new", is_new());
   if (get_linkage()->get_inode()) {
     f->dump_unsigned("inode", get_linkage()->get_inode()->ino());