]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: allow xattrs on the root inode
authorGreg Farnum <greg@inktank.com>
Thu, 21 Feb 2013 22:21:08 +0000 (14:21 -0800)
committerGreg Farnum <greg@inktank.com>
Thu, 21 Feb 2013 22:21:08 +0000 (14:21 -0800)
This was previously disallowed because Once Upon a Time, the root
inode wasn't persisted to disk and was an entirely in-memory construct. But
it's safe now, and has been for a while.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/mds/Server.cc

index 20372947f5f3025bad4b0affe977e11b80755df2..4f21601ebe818000a05f0d8a533f9bca5990d180 100644 (file)
@@ -3787,10 +3787,6 @@ void Server::handle_client_setxattr(MDRequest *mdr)
     reply_request(mdr, -EROFS);
     return;
   }
-  if (cur->is_base()) {
-    reply_request(mdr, -EINVAL);   // for now
-    return;
-  }
 
   int flags = req->head.args.setxattr.flags;