The 'get subtrees' command will show the '~mdsdir' as '~mds{rank}'
instead. It's strange that 'dump tree ~mds{rank} depth' doesn't
work.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
CInode *in;
unsigned depth = 0;
+ char mdsdir_name[16];
+ sprintf(mdsdir_name, "~mds%d", mds->get_nodeid());
if (fp.get_ino()) {
in = get_inode(fp.get_ino());
- } else if (fp.depth() > 0 && fp[0] == "~mdsdir") {
+ } else if (fp.depth() > 0 && (fp[0] == "~mdsdir" || fp[0] == mdsdir_name)) {
in = myin;
depth = 1;
} else {