From fdf99b5a6914867b2d8e902ccc50000a8d089fd9 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 3 Apr 2009 21:27:19 -0700 Subject: [PATCH] mds: issue AUTH_EXCL on mkdir Client is clearly an exclusive user, and will often chmod. --- src/mds/Server.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index ac43b87f06ab0..14d282fa98295 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -2417,6 +2417,8 @@ void Server::handle_client_mkdir(MDRequest *mdr) // put locks in excl mode newi->filelock.set_state(LOCK_EXCL); + newi->authlock.set_state(LOCK_EXCL); + cap->issue_norevoke(CEPH_CAP_AUTH_EXCL|CEPH_CAP_AUTH_RDCACHE); // make sure this inode gets into the journal le->metablob.add_opened_ino(newi->ino()); -- 2.39.5