]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: tweak dirfrag asok messages 5036/head
authorJohn Spray <john.spray@redhat.com>
Mon, 22 Jun 2015 10:40:47 +0000 (11:40 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 22 Jun 2015 10:40:47 +0000 (11:40 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDS.cc

index 148683159a439152b35ec490b71c040c901af97e..c40d30c71d6ab7cbd971919dac5b17de844b43c1 100644 (file)
@@ -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;
   }