mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Merge PR #37310 into master
* refs/pull/37310/head: client: refresh rstat for quota check of rename Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
e089ff759f
@ -6568,7 +6568,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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user