Mutex::Locker l(mds_lock);
mdcache->force_readonly();
} else if (command == "dirfrag split") {
- Mutex::Locker l(mds_lock);
command_dirfrag_split(cmdmap, ss);
} else if (command == "dirfrag merge") {
- Mutex::Locker l(mds_lock);
command_dirfrag_merge(cmdmap, ss);
} else if (command == "dirfrag ls") {
- Mutex::Locker l(mds_lock);
command_dirfrag_ls(cmdmap, ss, f);
} else {
return false;
cmdmap_t cmdmap,
std::ostream &ss)
{
+ Mutex::Locker l(mds_lock);
if (!mdsmap->allows_dirfrags()) {
ss << "dirfrags are disallowed by the mds map!";
return false;
cmdmap_t cmdmap,
std::ostream &ss)
{
+ Mutex::Locker l(mds_lock);
std::string path;
bool got = cmd_getval(g_ceph_context, cmdmap, "path", path);
if (!got) {
std::ostream &ss,
Formatter *f)
{
+ Mutex::Locker l(mds_lock);
std::string path;
bool got = cmd_getval(g_ceph_context, cmdmap, "path", path);
if (!got) {