[PATCH 14/25] qemu: blockjob: Add 'concluded' state for a block job

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

 



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@xxxxxxxxxx>
---
 src/qemu/qemu_blockjob.c | 2 +-
 src/qemu/qemu_blockjob.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_blockjob.c b/src/qemu/qemu_blockjob.c
index 3211230811..5177a361ec 100644
--- a/src/qemu/qemu_blockjob.c
+++ b/src/qemu/qemu_blockjob.c
@@ -47,7 +47,7 @@ VIR_LOG_INIT("qemu.qemu_blockjob");
  * the status XML */
 VIR_ENUM_IMPL(qemuBlockjobState,
               QEMU_BLOCKJOB_STATE_LAST,
-              "completed", "failed", "cancelled", "ready", "new", "running");
+              "completed", "failed", "cancelled", "ready", "new", "running", "concluded");

 VIR_ENUM_IMPL(qemuBlockjob,
               QEMU_BLOCKJOB_TYPE_LAST,
diff --git a/src/qemu/qemu_blockjob.h b/src/qemu/qemu_blockjob.h
index c5fd636340..743f47ee89 100644
--- a/src/qemu/qemu_blockjob.h
+++ b/src/qemu/qemu_blockjob.h
@@ -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);
-- 
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