]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: make ECCommon compatible with libfmt
authorRadosław Zarzyński <rzarzyns@redhat.com>
Thu, 28 Sep 2023 16:23:47 +0000 (18:23 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 10 Jan 2024 17:30:28 +0000 (17:30 +0000)
For the crimson's sake.

Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
src/osd/ECCommon.h
src/osd/ECMsgTypes.h

index 2ef088f5bf1c1723dc446258908f8b4bb0813a93..f074a79abaf88b830cbbbaffb612c0d06e1444d4 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <boost/intrusive/set.hpp>
 #include <boost/intrusive/list.hpp>
+#include <fmt/format.h>
 
 #include "common/sharedptr_registry.hpp"
 #include "erasure-code/ErasureCodeInterface.h"
@@ -689,3 +690,8 @@ std::ostream &operator<<(std::ostream &lhs,
 std::ostream &operator<<(std::ostream &lhs,
                         const ECCommon::RMWPipeline::Op &rhs);
 
+template <> struct fmt::formatter<ECCommon::RMWPipeline::pipeline_state_t> : fmt::ostream_formatter {};
+template <> struct fmt::formatter<ECCommon::read_request_t> : fmt::ostream_formatter {};
+template <> struct fmt::formatter<ECCommon::read_result_t> : fmt::ostream_formatter {};
+template <> struct fmt::formatter<ECCommon::ReadOp> : fmt::ostream_formatter {};
+template <> struct fmt::formatter<ECCommon::RMWPipeline::Op> : fmt::ostream_formatter {};
index bf10704125c01a93092bc19247c358887977adcd..2d0bc5c122161adfa4d4c29d23e72d76ad5af8a8 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef ECBMSGTYPES_H
 #define ECBMSGTYPES_H
 
+#include <fmt/format.h>
+
 #include "osd_types.h"
 #include "include/buffer.h"
 #include "os/ObjectStore.h"
@@ -137,4 +139,9 @@ std::ostream &operator<<(
 std::ostream &operator<<(
   std::ostream &lhs, const ECSubReadReply &rhs);
 
+template <> struct fmt::formatter<ECSubWrite> : fmt::ostream_formatter {};
+template <> struct fmt::formatter<ECSubWriteReply> : fmt::ostream_formatter {};
+template <> struct fmt::formatter<ECSubRead> : fmt::ostream_formatter {};
+template <> struct fmt::formatter<ECSubReadReply> : fmt::ostream_formatter {};
+
 #endif