提交 f50a1407 编写于 作者: X XuTian 提交者: Xu Tian

add 'bitmap-mode' option support

Signed-off-by: NXuTian <xutian@redhat.com>
上级 04c7f25b
......@@ -296,7 +296,7 @@ def blockdev_batch_backup(vm, source_lst, target_lst,
completion_mode = extra_options.pop("completion_mode", None)
sync_mode = extra_options.get("sync")
for idx, src in enumerate(source_lst):
if sync_mode == "incremental":
if sync_mode in ["incremental", "bitmap"]:
assert len(bitmap_lst) == len(
source_lst), "must provide a valid bitmap name for 'incremental' sync mode"
extra_options["bitmap"] = bitmap_lst[idx]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册