mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 11:52:20 +00:00
snapshot: qemu: Rename qemuDomainSnapshotCreateActive
Before now, libvirt supported only internal snapshots for active guests. This patch renames this function to qemuDomainSnapshotCreateActiveInternal to prepare the grounds for external active snapshots.
This commit is contained in:
parent
2a59a3d597
commit
b5fd404471
@ -10648,9 +10648,10 @@ qemuDomainSnapshotCreateInactive(struct qemud_driver *driver,
|
|||||||
return qemuDomainSnapshotForEachQcow2(driver, vm, snap, "-c", false);
|
return qemuDomainSnapshotForEachQcow2(driver, vm, snap, "-c", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* The domain is expected to be locked and active. */
|
/* The domain is expected to be locked and active. */
|
||||||
static int
|
static int
|
||||||
qemuDomainSnapshotCreateActive(virConnectPtr conn,
|
qemuDomainSnapshotCreateActiveInternal(virConnectPtr conn,
|
||||||
struct qemud_driver *driver,
|
struct qemud_driver *driver,
|
||||||
virDomainObjPtr *vmptr,
|
virDomainObjPtr *vmptr,
|
||||||
virDomainSnapshotObjPtr snap,
|
virDomainSnapshotObjPtr snap,
|
||||||
@ -11443,7 +11444,7 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain,
|
|||||||
if (qemuDomainSnapshotCreateInactive(driver, vm, snap) < 0)
|
if (qemuDomainSnapshotCreateInactive(driver, vm, snap) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else {
|
} else {
|
||||||
if (qemuDomainSnapshotCreateActive(domain->conn, driver,
|
if (qemuDomainSnapshotCreateActiveInternal(domain->conn, driver,
|
||||||
&vm, snap, flags) < 0)
|
&vm, snap, flags) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user