mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu: blockjob: Add flag for invalid block job data
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 <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3dc496e098
commit
61e9066a69
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user