]>
git.proxmox.com Git - ceph.git/blob - ceph/src/librbd/mirror/ImageRemoveRequest.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_LIBRBD_MIRROR_IMAGE_REMOVE_REQUEST_H
5 #define CEPH_LIBRBD_MIRROR_IMAGE_REMOVE_REQUEST_H
7 #include "include/rados/librados.hpp"
8 #include "common/ceph_mutex.h"
9 #include "cls/rbd/cls_rbd_types.h"
21 template <typename ImageCtxT
= ImageCtx
>
22 class ImageRemoveRequest
{
24 static ImageRemoveRequest
*create(librados::IoCtx
& io_ctx
,
25 const std::string
& global_image_id
,
26 const std::string
& image_id
,
28 return new ImageRemoveRequest(io_ctx
, global_image_id
, image_id
, on_finish
);
31 ImageRemoveRequest(librados::IoCtx
& io_ctx
,
32 const std::string
& global_image_id
,
33 const std::string
& image_id
,
47 * NOTIFY_MIRRORING_WATCHER
55 librados::IoCtx
& m_io_ctx
;
56 std::string m_global_image_id
;
57 std::string m_image_id
;
62 void remove_mirror_image();
63 void handle_remove_mirror_image(int r
);
65 void notify_mirroring_watcher();
66 void handle_notify_mirroring_watcher(int r
);
75 extern template class librbd::mirror::ImageRemoveRequest
<librbd::ImageCtx
>;
77 #endif // CEPH_LIBRBD_MIRROR_IMAGE_REMOVE_REQUEST_H