]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Thu, 27 Feb 2025 18:41:54 +0000 (13:41 -0500)
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
src/client/Client.h

index 67ee3729c564c61982c1238cb2187e7c994d1cbf..c731def9b61a9be7b4c138611ddf3627721226fe 100644 (file)
@@ -269,11 +269,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);
@@ -955,6 +950,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;