From 9f82ae60fac30391dfa9d17d2fc014bf9e21f387 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Thu, 21 Feb 2013 14:21:08 -0800 Subject: [PATCH] mds: allow xattrs on the root inode 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 --- src/mds/Server.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 20372947f5f30..4f21601ebe818 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -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; -- 2.39.5