You need to sign in or sign up before continuing.
提交 ed1c0aba 编写于 作者: P Peter Krempa

qemu: blockjob: Use proper value when setting disk's READY state

Commit c4123837 used a value from wrong enum when setting the disk's
mirrorState variable. This meant that a 'READY' job would show up as
'PIVOTING'.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
ACKed-by: NEric Blake <eblake@redhat.com>
上级 93b77cba
...@@ -723,7 +723,7 @@ qemuBlockJobEventProcess(virQEMUDriverPtr driver, ...@@ -723,7 +723,7 @@ qemuBlockJobEventProcess(virQEMUDriverPtr driver,
case QEMU_BLOCKJOB_STATE_READY: case QEMU_BLOCKJOB_STATE_READY:
if (job->disk && job->disk->mirror) { if (job->disk && job->disk->mirror) {
job->disk->mirrorState = VIR_DOMAIN_BLOCK_JOB_READY; job->disk->mirrorState = VIR_DOMAIN_DISK_MIRROR_STATE_READY;
qemuBlockJobEmitEvents(driver, vm, job->disk, job->type, job->newstate); qemuBlockJobEmitEvents(driver, vm, job->disk, job->type, job->newstate);
} }
job->state = job->newstate; job->state = job->newstate;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册