mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
qemuSnapshotDiskPrepare: rename to qemuSnapshotDiskPrepareActiveExternal
Make it obvious that the snapshot is prepared for the active external snapshot case. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
ebdbd05aab
commit
4a927468fb
@ -1087,18 +1087,18 @@ qemuSnapshotDiskPrepareOne(virDomainObjPtr vm,
|
||||
|
||||
|
||||
/**
|
||||
* qemuSnapshotDiskPrepare:
|
||||
* qemuSnapshotDiskPrepareActiveExternal:
|
||||
*
|
||||
* Collects and prepares a list of structures that hold information about disks
|
||||
* that are selected for the snapshot.
|
||||
*/
|
||||
static qemuSnapshotDiskContextPtr
|
||||
qemuSnapshotDiskPrepare(virDomainObjPtr vm,
|
||||
virDomainMomentObjPtr snap,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
bool reuse,
|
||||
virHashTablePtr blockNamedNodeData,
|
||||
qemuDomainAsyncJob asyncJob)
|
||||
qemuSnapshotDiskPrepareActiveExternal(virDomainObjPtr vm,
|
||||
virDomainMomentObjPtr snap,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
bool reuse,
|
||||
virHashTablePtr blockNamedNodeData,
|
||||
qemuDomainAsyncJob asyncJob)
|
||||
{
|
||||
g_autoptr(qemuSnapshotDiskContext) snapctxt = NULL;
|
||||
size_t i;
|
||||
@ -1241,8 +1241,8 @@ qemuSnapshotCreateActiveExternalDisks(virDomainObjPtr vm,
|
||||
|
||||
/* prepare a list of objects to use in the vm definition so that we don't
|
||||
* have to roll back later */
|
||||
if (!(snapctxt = qemuSnapshotDiskPrepare(vm, snap, cfg, reuse,
|
||||
blockNamedNodeData, asyncJob)))
|
||||
if (!(snapctxt = qemuSnapshotDiskPrepareActiveExternal(vm, snap, cfg, reuse,
|
||||
blockNamedNodeData, asyncJob)))
|
||||
return -1;
|
||||
|
||||
if (qemuSnapshotDiskCreate(snapctxt, cfg) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user