mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: blockjob: Use proper value when setting disk's READY state
Commit c412383796
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: Peter Krempa <pkrempa@redhat.com>
ACKed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
93b77cba0a
commit
ed1c0aba34
@ -723,7 +723,7 @@ qemuBlockJobEventProcess(virQEMUDriverPtr driver,
|
||||
|
||||
case QEMU_BLOCKJOB_STATE_READY:
|
||||
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);
|
||||
}
|
||||
job->state = job->newstate;
|
||||
|
Loading…
Reference in New Issue
Block a user