mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
librbd: save requested mirror image mode during migration prepare
Once the migration is committed, the requested mode will be applied. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
407f2e5c17
commit
25c034f0a0
@ -1227,6 +1227,15 @@ int Migration<I>::create_dst_image() {
|
||||
ConfigProxy config{m_cct->_conf};
|
||||
api::Config<I>::apply_pool_overrides(m_dst_io_ctx, &config);
|
||||
|
||||
uint64_t mirror_image_mode;
|
||||
if (m_image_options.get(RBD_IMAGE_OPTION_MIRROR_IMAGE_MODE,
|
||||
&mirror_image_mode) == 0) {
|
||||
m_mirroring = true;
|
||||
m_mirror_image_mode = static_cast<cls::rbd::MirrorImageMode>(
|
||||
mirror_image_mode);
|
||||
m_image_options.unset(RBD_IMAGE_OPTION_MIRROR_IMAGE_MODE);
|
||||
}
|
||||
|
||||
int r;
|
||||
C_SaferCond on_create;
|
||||
librados::IoCtx parent_io_ctx;
|
||||
|
Loading…
Reference in New Issue
Block a user