This reverts commit
c7d265a9b276aad5caf9b35f3ce8bc7bdd169f0f.
Because this pre-dates the `fs rm` command, this change was
preventing firefly users from ever deleting their filesystem pools.
Fixes: #8010
Signed-off-by: John Spray <john.spray@redhat.com>
{
string poolstr = osdmap.get_pool_name(pool);
- // If the Pool is in use by CephFS, refuse to delete it
- MDSMap const &pending_mdsmap = mon->mdsmon()->pending_mdsmap;
- if (pending_mdsmap.is_data_pool(pool) ||
- pending_mdsmap.get_metadata_pool() == pool) {
- *ss << "pool '" << poolstr << "' is in use by CephFS";
- return -EBUSY;
- }
-
if (p->tier_of >= 0) {
*ss << "pool '" << poolstr << "' is a tier of '"
<< osdmap.get_pool_name(p->tier_of) << "'";