]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Client.cc: adjust Client::_getattr calls 15466/head
authorNathan Cutler <ncutler@suse.com>
Sun, 4 Jun 2017 18:39:58 +0000 (20:39 +0200)
committerNathan Cutler <ncutler@suse.com>
Sun, 4 Jun 2017 19:01:18 +0000 (21:01 +0200)
Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/client/Client.cc

index 0a124b370ce1930ad3b6f5a812d35a0fb350dbeb..92ae3bcd2e60e4f98a6bc4c18078cfaaa8800e80 100644 (file)
@@ -8934,7 +8934,7 @@ int Client::statfs(const char *path, struct statvfs *stbuf)
     // block `df` if this client has e.g. been evicted, or if the MDS cluster
     // is unhealthy.
     if (!_any_stale_sessions()) {
-      int r = _getattr(quota_root, 0, perms, true);
+      int r = _getattr(quota_root, 0, -1, -1, true);
       if (r != 0) {
         // Ignore return value: error getting latest inode metadata is not a good
         // reason to break "df".
@@ -9857,7 +9857,7 @@ int Client::_getxattr(Inode *in, const char *name, void *value, size_t size,
 
     // Do a force getattr to get the latest quota before returning
     // a value to userspace.
-    r = _getattr(in, 0, perms, true);
+    r = _getattr(in, 0, uid, gid, true);
     if (r != 0) {
       // Error from getattr!
       return r;