From: Greg Farnum Date: Fri, 20 Aug 2010 00:19:59 +0000 (-0700) Subject: mds: allow you to DELETE snapshots in root directory too X-Git-Tag: v0.22~229^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6aec68150aaac3e23ab8cdd1ad91b13b55827aa2;p=ceph.git mds: allow you to DELETE snapshots in root directory too --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index b998c61c87a88..ebdf6f9faf158 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -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;