From 61e9066a6908c7b11c8285f1e01efcb070016eb8 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 5 Jul 2019 09:02:21 +0200 Subject: [PATCH] qemu: blockjob: Add flag for invalid block job data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The job data saved in the XML may be partially invalid e.g. if something is missing. To prevent losing a domain with such a job add a flag to the job data so that job APIs can ignore such a job and we can just cancel it. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/qemu/qemu_blockjob.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qemu/qemu_blockjob.h b/src/qemu/qemu_blockjob.h index fe16badbc8..5b3af69d89 100644 --- a/src/qemu/qemu_blockjob.h +++ b/src/qemu/qemu_blockjob.h @@ -80,6 +80,8 @@ struct _qemuBlockJobData { bool synchronous; /* API call is waiting for this job */ int newstate; /* qemuBlockjobState, subset of events emitted by qemu */ + + bool invalidData; /* the job data (except name) is not valid */ }; int