]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/io/Utils.h
Import ceph 15.2.8
[ceph.git] / ceph / src / librbd / io / Utils.h
index 285985036de280e44bdb090f41c9fa70fb7d7026..13237435a1569e980a9388f5af68142c81b951aa 100644 (file)
@@ -6,12 +6,18 @@
 
 #include "include/int_types.h"
 #include "include/buffer_fwd.h"
+#include "include/rados/rados_types.hpp"
+#include "common/zipkin_trace.h"
 #include "librbd/io/Types.h"
 #include <map>
 
+class Context;
 class ObjectExtent;
 
 namespace librbd {
+
+struct ImageCtx;
+
 namespace io {
 namespace util {
 
@@ -20,6 +26,12 @@ bool assemble_write_same_extent(const LightweightObjectExtent &object_extent,
                                 ceph::bufferlist *ws_data,
                                 bool force_write);
 
+template <typename ImageCtxT = librbd::ImageCtx>
+void read_parent(ImageCtxT *image_ctx, uint64_t object_no, uint64_t off,
+                 uint64_t len, librados::snap_t snap_id,
+                 const ZTracer::Trace &trace, ceph::bufferlist* data,
+                 Context* on_finish);
+
 } // namespace util
 } // namespace io
 } // namespace librbd