mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +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,13 +10648,14 @@ qemuDomainSnapshotCreateInactive(struct qemud_driver *driver,
|
||||
return qemuDomainSnapshotForEachQcow2(driver, vm, snap, "-c", false);
|
||||
}
|
||||
|
||||
|
||||
/* The domain is expected to be locked and active. */
|
||||
static int
|
||||
qemuDomainSnapshotCreateActive(virConnectPtr conn,
|
||||
struct qemud_driver *driver,
|
||||
virDomainObjPtr *vmptr,
|
||||
virDomainSnapshotObjPtr snap,
|
||||
unsigned int flags)
|
||||
qemuDomainSnapshotCreateActiveInternal(virConnectPtr conn,
|
||||
struct qemud_driver *driver,
|
||||
virDomainObjPtr *vmptr,
|
||||
virDomainSnapshotObjPtr snap,
|
||||
unsigned int flags)
|
||||
{
|
||||
virDomainObjPtr vm = *vmptr;
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
@ -11443,8 +11444,8 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain,
|
||||
if (qemuDomainSnapshotCreateInactive(driver, vm, snap) < 0)
|
||||
goto cleanup;
|
||||
} else {
|
||||
if (qemuDomainSnapshotCreateActive(domain->conn, driver,
|
||||
&vm, snap, flags) < 0)
|
||||
if (qemuDomainSnapshotCreateActiveInternal(domain->conn, driver,
|
||||
&vm, snap, flags) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user