]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: refresh rstat for quota check of rename 37369/head
authorYan, Zheng <zyan@redhat.com>
Tue, 22 Sep 2020 12:31:08 +0000 (20:31 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 24 Sep 2020 19:14:37 +0000 (21:14 +0200)
Fixes: https://tracker.ceph.com/issues/47224
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 2e536cdd4a5ca4a9a7bc867cde994dff044f088c)

src/client/Client.cc

index 86675caf9eb6b9fe1d76e6bb707b1afaa986cd6e..ebba371e898ca4abd77b2e4ff2f00e64776047d3 100755 (executable)
@@ -6409,7 +6409,7 @@ int Client::_lookup(Inode *dir, const string& dname, int mask, InodeRef *target,
   int r = 0;
   Dentry *dn = NULL;
   // can only request shared caps
-  mask &= CEPH_CAP_ANY_SHARED;
+  mask &= CEPH_CAP_ANY_SHARED | CEPH_STAT_RSTAT;
 
   if (dname == "..") {
     if (dir->dentries.empty()) {