]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: blockjob: Add 'concluded' state for a block job
authorPeter Krempa <pkrempa@redhat.com>
Fri, 7 Dec 2018 16:40:30 +0000 (17:40 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 18 Jul 2019 15:59:34 +0000 (17:59 +0200)
This new state is entered when qemu finished the job but libvirt does
not know whether it was successful or not.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_blockjob.c
src/qemu/qemu_blockjob.h

index 4e832963e41a907181b473b2a28eb19c4b8d56af..3186afccc2bece6329c4f3b5e6b373ad1ed267a1 100644 (file)
@@ -52,7 +52,8 @@ VIR_ENUM_IMPL(qemuBlockjobState,
               "cancelled",
               "ready",
               "new",
-              "running");
+              "running",
+              "concluded");
 
 VIR_ENUM_IMPL(qemuBlockjob,
               QEMU_BLOCKJOB_TYPE_LAST,
index c5fd6363404726d35383a7e92a330d447352ebcb..743f47ee896b1dc5728c2783c70d02224673283f 100644 (file)
@@ -38,6 +38,8 @@ typedef enum {
     /* Additional enum values local to qemu */
     QEMU_BLOCKJOB_STATE_NEW,
     QEMU_BLOCKJOB_STATE_RUNNING,
+    QEMU_BLOCKJOB_STATE_CONCLUDED, /* job has finished, but it's unknown
+                                      whether it has failed or not */
     QEMU_BLOCKJOB_STATE_LAST
 } qemuBlockjobState;
 verify((int)QEMU_BLOCKJOB_STATE_NEW == VIR_DOMAIN_BLOCK_JOB_LAST);