提交 ee744b5b 编写于 作者: P Peter Krempa

qemu: block-commit: Mark disk in block jobs only on successful command

Patch 51f9f03a introduces a regression
where if a blockCommit operation fails the disk is still marked as being
part of a block job but can't be unmarked later.
上级 3c2ff502
......@@ -17094,7 +17094,8 @@ qemuDomainBlockCommit(virDomainPtr dom,
goto endjob;
}
disk->blockjob = true;
if (ret == 0)
disk->blockjob = true;
if (mirror) {
if (ret == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册