mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
qemu: Add enum entries for 'snapshot-load' qemu job
The internal snapshot code will use the 'snapshot-load' command so we need to add the corresponding job type. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
2ed93e1a4b
commit
6902e77c01
@ -3777,6 +3777,7 @@ qemuBlockPivot(virDomainObj *vm,
|
||||
case QEMU_BLOCKJOB_TYPE_CREATE:
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_SAVE:
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_DELETE:
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_LOAD:
|
||||
case QEMU_BLOCKJOB_TYPE_BROKEN:
|
||||
virReportError(VIR_ERR_OPERATION_INVALID,
|
||||
_("job type '%1$s' does not support pivot"),
|
||||
|
@ -70,6 +70,7 @@ VIR_ENUM_IMPL(qemuBlockjob,
|
||||
"create",
|
||||
"snapshot-save",
|
||||
"snapshot-delete",
|
||||
"snapshot-load",
|
||||
"broken");
|
||||
|
||||
static virClass *qemuBlockJobDataClass;
|
||||
@ -1459,6 +1460,7 @@ qemuBlockJobEventProcessConcludedTransition(qemuBlockJobData *job,
|
||||
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_SAVE:
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_DELETE:
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_LOAD:
|
||||
/* The internal snapshot jobs don't need any extra handling */
|
||||
break;
|
||||
|
||||
|
@ -67,6 +67,7 @@ typedef enum {
|
||||
QEMU_BLOCKJOB_TYPE_CREATE,
|
||||
QEMU_BLOCKJOB_TYPE_SNAPSHOT_SAVE,
|
||||
QEMU_BLOCKJOB_TYPE_SNAPSHOT_DELETE,
|
||||
QEMU_BLOCKJOB_TYPE_SNAPSHOT_LOAD,
|
||||
QEMU_BLOCKJOB_TYPE_BROKEN,
|
||||
QEMU_BLOCKJOB_TYPE_LAST
|
||||
} qemuBlockJobType;
|
||||
|
@ -2478,6 +2478,7 @@ qemuDomainObjPrivateXMLFormatBlockjobIterator(void *payload,
|
||||
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_SAVE:
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_DELETE:
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_LOAD:
|
||||
/* No private data for internal snapshot jobs */
|
||||
break;
|
||||
|
||||
@ -3035,6 +3036,7 @@ qemuDomainObjPrivateXMLParseBlockjobDataSpecific(qemuBlockJobData *job,
|
||||
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_SAVE:
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_DELETE:
|
||||
case QEMU_BLOCKJOB_TYPE_SNAPSHOT_LOAD:
|
||||
/* No extra data for internal snapshot jobs. */
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user