]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: allow you to DELETE snapshots in root directory too
authorGreg Farnum <gregf@hq.newdream.net>
Fri, 20 Aug 2010 00:19:59 +0000 (17:19 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 20 Aug 2010 00:19:59 +0000 (17:19 -0700)
src/mds/Server.cc

index b998c61c87a882716d717e3c4905722ebb1abae2..ebdf6f9faf158922e03ff49eab35ce6a4d27a1af 100644 (file)
@@ -5796,10 +5796,6 @@ void Server::handle_client_rmsnap(MDRequest *mdr)
     reply_request(mdr, -ENOTDIR);
     return;
   }
-  if (diri->is_system()) {  // no snaps on root dir, at least not until we can store it
-    reply_request(mdr, -EPERM);
-    return;
-  }
 
   const string &snapname = req->get_filepath().last_dentry();
   dout(10) << "rmsnap " << snapname << " on " << *diri << dendl;