mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
Fix typo in internal VIR_QEMU_PROCESS_START_AUTODESROY constant
s/VIR_QEMU_PROCESS_START_AUTODESROY/VIR_QEMU_PROCESS_START_AUTODESTROY/ Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
279336c5d8
commit
d0b3ee55ec
@ -1460,7 +1460,7 @@ static virDomainPtr qemuDomainCreate(virConnectPtr conn, const char *xml,
|
||||
if (flags & VIR_DOMAIN_START_PAUSED)
|
||||
start_flags |= VIR_QEMU_PROCESS_START_PAUSED;
|
||||
if (flags & VIR_DOMAIN_START_AUTODESTROY)
|
||||
start_flags |= VIR_QEMU_PROCESS_START_AUTODESROY;
|
||||
start_flags |= VIR_QEMU_PROCESS_START_AUTODESTROY;
|
||||
|
||||
if (!(caps = virQEMUDriverGetCapabilities(driver, false)))
|
||||
goto cleanup;
|
||||
@ -5403,7 +5403,7 @@ qemuDomainObjStart(virConnectPtr conn,
|
||||
unsigned int start_flags = VIR_QEMU_PROCESS_START_COLD;
|
||||
|
||||
start_flags |= start_paused ? VIR_QEMU_PROCESS_START_PAUSED : 0;
|
||||
start_flags |= autodestroy ? VIR_QEMU_PROCESS_START_AUTODESROY : 0;
|
||||
start_flags |= autodestroy ? VIR_QEMU_PROCESS_START_AUTODESTROY : 0;
|
||||
|
||||
/*
|
||||
* If there is a managed saved state restore it instead of starting
|
||||
|
@ -2124,7 +2124,7 @@ qemuMigrationPrepareAny(virQEMUDriverPtr driver,
|
||||
if (qemuProcessStart(dconn, driver, vm, migrateFrom, dataFD[0], NULL, NULL,
|
||||
VIR_NETDEV_VPORT_PROFILE_OP_MIGRATE_IN_START,
|
||||
VIR_QEMU_PROCESS_START_PAUSED |
|
||||
VIR_QEMU_PROCESS_START_AUTODESROY) < 0) {
|
||||
VIR_QEMU_PROCESS_START_AUTODESTROY) < 0) {
|
||||
virDomainAuditStart(vm, "migrated", false);
|
||||
/* Note that we don't set an error here because qemuProcessStart
|
||||
* should have already done that.
|
||||
|
@ -3516,7 +3516,7 @@ int qemuProcessStart(virConnectPtr conn,
|
||||
* but doesn't hurt to check */
|
||||
virCheckFlags(VIR_QEMU_PROCESS_START_COLD |
|
||||
VIR_QEMU_PROCESS_START_PAUSED |
|
||||
VIR_QEMU_PROCESS_START_AUTODESROY, -1);
|
||||
VIR_QEMU_PROCESS_START_AUTODESTROY, -1);
|
||||
|
||||
cfg = virQEMUDriverGetConfig(driver);
|
||||
|
||||
@ -4043,7 +4043,7 @@ int qemuProcessStart(virConnectPtr conn,
|
||||
VIR_DOMAIN_PAUSED_USER);
|
||||
}
|
||||
|
||||
if (flags & VIR_QEMU_PROCESS_START_AUTODESROY &&
|
||||
if (flags & VIR_QEMU_PROCESS_START_AUTODESTROY &&
|
||||
qemuProcessAutoDestroyAdd(driver, vm, conn) < 0)
|
||||
goto cleanup;
|
||||
|
||||
|
@ -47,7 +47,7 @@ int qemuProcessAssignPCIAddresses(virDomainDefPtr def);
|
||||
typedef enum {
|
||||
VIR_QEMU_PROCESS_START_COLD = 1 << 0,
|
||||
VIR_QEMU_PROCESS_START_PAUSED = 1 << 1,
|
||||
VIR_QEMU_PROCESS_START_AUTODESROY = 1 << 2,
|
||||
VIR_QEMU_PROCESS_START_AUTODESTROY = 1 << 2,
|
||||
} qemuProcessStartFlags;
|
||||
|
||||
int qemuProcessStart(virConnectPtr conn,
|
||||
|
Loading…
Reference in New Issue
Block a user