]> git.proxmox.com Git - ceph.git/blob - ceph/src/librbd/deep_copy/Utils.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / librbd / deep_copy / Utils.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef CEPH_LIBRBD_DEEP_COPY_UTILS_H
5 #define CEPH_LIBRBD_DEEP_COPY_UTILS_H
6
7 #include "include/common_fwd.h"
8 #include "include/rados/librados.hpp"
9 #include "librbd/Types.h"
10 #include "librbd/deep_copy/Types.h"
11
12 #include <boost/optional.hpp>
13
14 namespace librbd {
15 namespace deep_copy {
16 namespace util {
17
18 void compute_snap_map(CephContext* cct,
19 librados::snap_t src_snap_id_start,
20 librados::snap_t src_snap_id_end,
21 const SnapIds& dst_snap_ids,
22 const SnapSeqs &snap_seqs,
23 SnapMap *snap_map);
24
25 } // namespace util
26 } // namespace deep_copy
27 } // namespace librbd
28
29 #endif // CEPH_LIBRBD_DEEP_COPY_UTILS_H