mdr->reply_extra_bl = dirbl;
// bump popularity. NOTE: this doesn't quite capture it.
- mds->balancer->hit_dir(dir, META_POP_IRD, -1, numfiles);
+ mds->balancer->hit_dir(dir, META_POP_READDIR, -1, numfiles);
// reply
mdr->tracei = diri;
}
if (!mds->mdsmap->allows_snaps()) {
// you can't make snapshots until you set an option right now
+ dout(5) << "new snapshots are disabled for this fs" << dendl;
respond_to_request(mdr, -CEPHFS_EPERM);
return;
}
}
if (diri->is_system() && !diri->is_root()) {
// no snaps in system dirs (root is ok)
+ dout(5) << "is an internal system dir" << dendl;
respond_to_request(mdr, -CEPHFS_EPERM);
return;
}
if (inodeno_t subvol_ino = diri->find_snaprealm()->get_subvolume_ino();
(subvol_ino && subvol_ino != diri->ino())) {
+ dout(5) << "is a descendent of a subvolume dir" << dendl;
respond_to_request(mdr, -CEPHFS_EPERM);
return;
}