#ifndef CEPH_LIBRBD_MIRROR_ENABLE_REQUEST_H
#define CEPH_LIBRBD_MIRROR_ENABLE_REQUEST_H
-#include "include/buffer.h"
+#include "include/buffer_fwd.h"
+#include "include/rados/librados_fwd.hpp"
#include "cls/rbd/cls_rbd_types.h"
#include <map>
#include <string>
class Context;
class ContextWQ;
-namespace librados { class IoCtx; }
-
namespace librbd {
class ImageCtx;
* <start>
* |
* v
- * GET_MIRROR_MODE * * * * * * *
- * | *
+ * GET_MIRROR_IMAGE * * * * * * *
+ * | * (on error)
* v *
* GET_TAG_OWNER * * * * * * * *
* | *
* v *
- * GET_MIRROR_IMAGE * * * * * * *
- * | * (on error)
- * v *
* SET_MIRROR_IMAGE * * * * * * *
* | *
* v *
bufferlist m_out_bl;
cls::rbd::MirrorImage m_mirror_image;
- void send_get_tag_owner();
- Context *handle_get_tag_owner(int *result);
-
void send_get_mirror_image();
Context *handle_get_mirror_image(int *result);
+ void send_get_tag_owner();
+ Context *handle_get_tag_owner(int *result);
+
void send_set_mirror_image();
Context *handle_set_mirror_image(int *result);