]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: relocate definition
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 12 Sep 2024 22:39:33 +0000 (18:39 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 17 Mar 2025 19:43:17 +0000 (15:43 -0400)
It doesn't need to be public; the API does not expose alternate_name.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Fixes: https://tracker.ceph.com/issues/66373
(cherry picked from commit 45ff4994f250e56fc720ce5e97ed72d0d0c3cc3d)

src/client/Client.h

index 62dd3692bdbda9bed81ec9825d27f43995e5e9d3..a5e71b357b74d225d1350c933c3ee2a3eb671356 100644 (file)
@@ -266,11 +266,6 @@ public:
 
   typedef int (*add_dirent_cb_t)(void *p, struct dirent *de, struct ceph_statx *stx, off_t off, Inode *in);
 
-  struct walk_dentry_result {
-    InodeRef in;
-    std::string alternate_name;
-  };
-
   class CommandHook : public AdminSocketHook {
   public:
     explicit CommandHook(Client *client);
@@ -952,6 +947,11 @@ public:
   bool _collect_and_send_global_metrics;
 
 protected:
+  struct walk_dentry_result {
+    InodeRef in;
+    std::string alternate_name;
+  };
+
   std::list<ceph::condition_variable*> waiting_for_reclaim;
   /* Flags for check_caps() */
   static const unsigned CHECK_CAPS_NODELAY = 0x1;