[PATCH 1/9] qemu: blockjob: Use proper value when setting disk's READY state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit c412383796c used 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@xxxxxxxxxx>
---
 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;
-- 
2.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux