]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: return false if cannot link all the way to mountpoint
authorXiubo Li <xiubli@redhat.com>
Mon, 9 Oct 2023 04:15:02 +0000 (12:15 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 27 Mar 2024 04:19:57 +0000 (12:19 +0800)
Just in case we cannot link all the way to our mount point we will
force to do sync requests instead and let the MDS do the auth access
check.

Introduced-by: fd7aaab2907 client: add make_path_string() helpers support
Fixes: https://github.com/ceph/ceph/pull/48027#issuecomment-1752324457
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit c7bc4523ffec65d132eef217ce87eaf344144e35)

src/client/Dentry.h

index c66aca6f1e04ef878051e02a9b37b64bdfe8baf6..47d320ecbbcf7deaaf5a6c86db72330a2655a63c 100644 (file)
@@ -84,7 +84,8 @@ public:
     if (dir) {
       ret = dir->parent_inode->make_path_string(s);
     } else {
-      s = "???";
+      // Couldn't link all the way to our mount point
+      return false;
     }
     s += "/";
     s.append(name.data(), name.length());