From: John Spray Date: Mon, 22 Jun 2015 10:40:47 +0000 (+0100) Subject: mds: tweak dirfrag asok messages X-Git-Tag: v9.0.3~122^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=439faebfede07dfc90d4aaee26a2e1221358dc33;p=ceph.git mds: tweak dirfrag asok messages Signed-off-by: John Spray --- diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index 148683159a43..c40d30c71d6a 100644 --- a/src/mds/MDS.cc +++ b/src/mds/MDS.cc @@ -630,7 +630,7 @@ CDir *MDS::_command_dirfrag_get( // TODO really we should load something in if it's not in cache, // but the infrastructure is harder, and we might still be unable // to act on it if someone else is auth. - ss << "directory inode not in cache"; + ss << "directory '" << path << "' inode not in cache"; return NULL; } @@ -643,7 +643,8 @@ CDir *MDS::_command_dirfrag_get( CDir *dir = in->get_dirfrag(fg); if (!dir) { - ss << "frag 0x" << std::hex << in->ino() << "/" << fg << " not found"; + ss << "frag 0x" << std::hex << in->ino() << "/" << fg << " not in cache (" + "use `dirfrag ls` to see if it should exist)"; return NULL; } @@ -700,7 +701,7 @@ bool MDS::command_dirfrag_merge( CInode *in = mdcache->cache_traverse(filepath(path.c_str())); if (!in) { - ss << "directory inode not in cache"; + ss << "directory '" << path << "' inode not in cache"; return false; }