From: huanwen ren Date: Mon, 4 Jul 2016 12:04:38 +0000 (+0800) Subject: mds/CDentry: add path_ino and is_primary in the dump() X-Git-Tag: ses5-milestone5~495^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c4a60ecdeb8c8f8235b847cf46bd0761441f8e42;p=ceph.git mds/CDentry: add path_ino and is_primary in the dump() path_ino and is_primary are main reference information in the dump(), so add their Signed-off-by: huanwen ren --- diff --git a/src/mds/CDentry.cc b/src/mds/CDentry.cc index 12820bd45c8e..2b953a03c349 100644 --- a/src/mds/CDentry.cc +++ b/src/mds/CDentry.cc @@ -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());