From ed1c0aba34729f8c641a17a426ca4e0314f66edd Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 24 Jul 2019 22:44:11 +0200 Subject: [PATCH] qemu: blockjob: Use proper value when setting disk's READY state Commit c412383796c 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 ACKed-by: Eric Blake --- src/qemu/qemu_blockjob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_blockjob.c b/src/qemu/qemu_blockjob.c index da4f20929b..e63dc49e92 100644 --- a/src/qemu/qemu_blockjob.c +++ b/src/qemu/qemu_blockjob.c @@ -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; -- GitLab