]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tools: add missing includes
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 28 Apr 2025 06:22:04 +0000 (08:22 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Thu, 28 Aug 2025 09:21:08 +0000 (11:21 +0200)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
18 files changed:
src/tools/ceph_dedup/ceph_dedup_daemon.cc
src/tools/ceph_dedup/ceph_dedup_tool.cc
src/tools/cephfs_mirror/Watcher.cc
src/tools/cephfs_mirror/watcher/RewatchRequest.cc
src/tools/rados/rados.cc
src/tools/radosacl.cc
src/tools/rbd/action/Bench.cc
src/tools/rbd/action/Clone.cc
src/tools/rbd/action/DiskUsage.cc
src/tools/rbd/action/Info.cc
src/tools/rbd/action/Journal.cc
src/tools/rbd/action/Snap.cc
src/tools/rbd/action/Status.cc
src/tools/rbd_mirror/Mirror.cc
src/tools/rbd_mirror/Throttler.cc
src/tools/rbd_mirror/image_deleter/TrashMoveRequest.cc
src/tools/rbd_mirror/image_replayer/journal/Replayer.cc
src/tools/scratchtoolpp.cc

index a82b0227b32af5dc34967ff88656d1e71888f3c3..52fec5ee12993fba268fb42dc6875adbd0de6bcf 100644 (file)
@@ -2,6 +2,7 @@
 // vim: ts=8 sw=2 smarttab
 
 #include "common.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "log/Log.h"
 
 #include <shared_mutex> // for std::shared_lock
index 31a4eb8f8bdfea7df369a4a6407809efc5cdfee5..b7c8c5132ab797b6c5a967fb328b84ce24838176 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include "common.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "log/Log.h"
 
 #include <boost/optional.hpp>
index 1445fce5f23b2d1995ba8d0c5a00bf20d5896994..df026449a846be1a379a674ee6e4b54e27b18566 100644 (file)
@@ -5,6 +5,7 @@
 #include "common/debug.h"
 #include "common/errno.h"
 #include "common/WorkQueue.h"
+#include "include/rados.h" // for EBLOCKLISTED
 #include "include/stringify.h"
 #include "aio_utils.h"
 #include "watcher/RewatchRequest.h"
index 3070e6f8b011840721b28a5efab0c737d039ecd1..07c6903a8f15c01e3a9fe367eb2b19ded4554227 100644 (file)
@@ -5,6 +5,7 @@
 #include "common/debug.h"
 #include "common/errno.h"
 #include "include/Context.h"
+#include "include/rados.h" // for EBLOCKLISTED
 #include "tools/cephfs_mirror/aio_utils.h"
 #include "RewatchRequest.h"
 
index 9781a174d0f17a54aa787ceee8e68979ad5c1019..91408b92c2ac399f12c0403b3132c8b32ba02332 100644 (file)
@@ -24,6 +24,7 @@
  using namespace libradosstriper;
 #endif
 
+#include "common/Clock.h" // for ceph_clock_now()
 #include "common/config.h"
 #include "common/ceph_argparse.h"
 #include "global/global_init.h"
index a6c9b9f8dc43fe0f17da3aee5d554a4d22bcc26f..8b0bea5f30e62effae698a20aa380beba3ae79ef 100644 (file)
@@ -18,6 +18,8 @@
 
 #include <iostream> // for std::cerr
 
+#include "include/encoding.h"
+#include "include/int_types.h" // for __u32
 #include "include/types.h"
 #include "include/rados/librados.hpp"
 
index d4c7a037489c4a1a1b8960702d05abe46a8e6a34..49933b1ff4e2ce9f94aaed02fe9e4d7147eb03cb 100644 (file)
@@ -4,6 +4,7 @@
 #include "tools/rbd/ArgumentTypes.h"
 #include "tools/rbd/Shell.h"
 #include "tools/rbd/Utils.h"
+#include "common/ceph_time.h" // for coarse_mono_time()
 #include "common/errno.h"
 #include "common/strtol.h"
 #include "common/ceph_mutex.h"
index 874024f482bd2c1c0919924f927496753d5310b9..89e04f9659f06c124ac1fc61b4b6623642daa595 100644 (file)
@@ -6,6 +6,7 @@
 #include "tools/rbd/Utils.h"
 #include "include/types.h"
 #include "common/errno.h"
+#include "include/rados.h" // for CEPH_NOSNAP
 #include <iostream>
 #include <boost/program_options.hpp>
 
index 12fb8cfde960e2287290f820691c6af32d0e1850..46288a4ccdc904c7e68367e1f68683d09933298e 100644 (file)
@@ -4,6 +4,7 @@
 #include "tools/rbd/ArgumentTypes.h"
 #include "tools/rbd/Shell.h"
 #include "tools/rbd/Utils.h"
+#include "include/rados.h" // for CEPH_NOSNAP
 #include "include/types.h"
 #include "include/stringify.h"
 #include "common/errno.h"
index f8d053cd76dad553effe6f18c8a1201b40349602..8c9377520dbeb2a5fc8ab3161cdc3406ed47bd7e 100644 (file)
@@ -4,8 +4,9 @@
 #include "tools/rbd/ArgumentTypes.h"
 #include "tools/rbd/Shell.h"
 #include "tools/rbd/Utils.h"
-#include "include/types.h"
+#include "include/rbd_types.h" // for RBD_GROUP_INVALID_POOL
 #include "include/stringify.h"
+#include "include/types.h" // for byte_u_t
 #include "common/errno.h"
 #include "common/Formatter.h"
 #include <iostream>
index 08606fcc3657185675d7296cb204d4f3d3858361..a7069ab668736d61087fda7a85fde8f118768f5a 100644 (file)
@@ -9,6 +9,7 @@
 #include "common/ceph_json.h"
 #include "common/errno.h"
 #include "common/safe_io.h"
+#include "include/rbd_types.h" // for RBD_DIRECTORY
 #include "include/stringify.h"
 #include <fstream>
 #include <sstream>
index 5f85f5d127d585c9b3dd71d7c0bda087d74681b3..f27b71dbb50dca07f7320e291b2b4272c39b9f65 100644 (file)
@@ -4,8 +4,9 @@
 #include "tools/rbd/ArgumentTypes.h"
 #include "tools/rbd/Shell.h"
 #include "tools/rbd/Utils.h"
-#include "include/types.h"
+#include "include/rados.h" // for CEPH_NOSNAP
 #include "include/stringify.h"
+#include "include/types.h" // for byte_u_t
 #include "common/errno.h"
 #include "common/Formatter.h"
 #include "common/TextTable.h"
index 958a686c4167854d530d16c0985ed72b2a2a022f..18b7cdb160c8a596141799e9086008abfbf77c6d 100644 (file)
@@ -9,6 +9,7 @@
 #include "tools/rbd/Utils.h"
 #include "include/rbd_types.h"
 #include "include/stringify.h"
+#include "include/types.h" // for byte_u_t
 #include "librbd/cache/Types.h"
 #include <iostream>
 #include <boost/program_options.hpp>
index 1328bfffe069d191a8f4e0163a0a0f50c8f4c456..eaaa21c88c355c87bbd9df2f5bfd9674a59619b5 100644 (file)
@@ -10,6 +10,7 @@
 #include "common/admin_socket.h"
 #include "common/debug.h"
 #include "common/errno.h"
+#include "include/intarith.h" // for p2roundup()
 #include "journal/Types.h"
 #include "librbd/ImageCtx.h"
 #include "perfglue/heap_profiler.h"
index 690f95c9f019ab64db198dbd660bae3764ab380c..b652f24f364f0d826baaab3b0c3540894d414c77 100644 (file)
@@ -16,6 +16,7 @@
 #include "common/Formatter.h"
 #include "common/debug.h"
 #include "common/errno.h"
+#include "include/types.h" // for operator<<(std::pair)
 #include "librbd/Utils.h"
 
 #define dout_context g_ceph_context
index e53923ef38730650aaf88d1ff2192908c69b4c01..ede4ac08f9748eaf62dc98a3b5c4af42b3edea26 100644 (file)
@@ -4,6 +4,7 @@
 #include "tools/rbd_mirror/image_deleter/TrashMoveRequest.h"
 #include "include/rbd_types.h"
 #include "cls/rbd/cls_rbd_client.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "common/debug.h"
 #include "common/errno.h"
 #include "common/WorkQueue.h"
index d052536cc388546851b6710b132e1a75c791a100..64e924e265bccc91c0b2d9845600f51a5a154c74 100644 (file)
@@ -2,6 +2,7 @@
 // vim: ts=8 sw=2 smarttab
 
 #include "Replayer.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "common/debug.h"
 #include "common/errno.h"
 #include "common/perf_counters.h"
index 0794e42f4bc18d52e4ca209f0865d7f5cb833400..6e0981ab2652195838bb4127c4c135e235fcbdbd 100644 (file)
@@ -12,7 +12,7 @@
  * 
  */
 
-#include "include/types.h"
+#include "include/rados.h" // for CEPH_OSD_CMPXATTR_OP_EQ
 #include "include/rados/librados.hpp"
 
 using namespace librados;