src_image_ctx, whether dummy for RawFormat and QCOWFormat or real for
NativeFormat, is managed by OpenSourceImageRequest.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit
8e58a52a408b703b79342670acbeb6c7303ddde7)
Conflicts:
src/librbd/migration/NativeFormat.cc [ commit
293d523ea69a
("librbd/migration: add external clusters support") not in
reef ]
#include "common/dout.h"
#include "common/errno.h"
#include "librbd/ImageCtx.h"
-#include "librbd/ImageState.h"
#include "librbd/Utils.h"
#include "librbd/asio/ContextWQ.h"
#include "librbd/io/ImageDispatchSpec.h"
#include "include/intarith.h"
#include "librbd/AsioEngine.h"
#include "librbd/ImageCtx.h"
-#include "librbd/ImageState.h"
#include "librbd/Utils.h"
#include "librbd/io/AioCompletion.h"
#include "librbd/io/ReadResult.h"
#include "common/dout.h"
#include "common/errno.h"
#include "librbd/ImageCtx.h"
-#include "librbd/ImageState.h"
#include "librbd/Utils.h"
#include "librbd/io/AioCompletion.h"
#include "librbd/io/ReadResult.h"