// 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;
}
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;
}
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;
}