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:
Peter Krempa 2020-09-21 16:37:44 +02:00
parent ebdbd05aab
commit 4a927468fb

View File

@ -1087,18 +1087,18 @@ qemuSnapshotDiskPrepareOne(virDomainObjPtr vm,
/** /**
* qemuSnapshotDiskPrepare: * qemuSnapshotDiskPrepareActiveExternal:
* *
* Collects and prepares a list of structures that hold information about disks * Collects and prepares a list of structures that hold information about disks
* that are selected for the snapshot. * that are selected for the snapshot.
*/ */
static qemuSnapshotDiskContextPtr static qemuSnapshotDiskContextPtr
qemuSnapshotDiskPrepare(virDomainObjPtr vm, qemuSnapshotDiskPrepareActiveExternal(virDomainObjPtr vm,
virDomainMomentObjPtr snap, virDomainMomentObjPtr snap,
virQEMUDriverConfigPtr cfg, virQEMUDriverConfigPtr cfg,
bool reuse, bool reuse,
virHashTablePtr blockNamedNodeData, virHashTablePtr blockNamedNodeData,
qemuDomainAsyncJob asyncJob) qemuDomainAsyncJob asyncJob)
{ {
g_autoptr(qemuSnapshotDiskContext) snapctxt = NULL; g_autoptr(qemuSnapshotDiskContext) snapctxt = NULL;
size_t i; 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 /* prepare a list of objects to use in the vm definition so that we don't
* have to roll back later */ * have to roll back later */
if (!(snapctxt = qemuSnapshotDiskPrepare(vm, snap, cfg, reuse, if (!(snapctxt = qemuSnapshotDiskPrepareActiveExternal(vm, snap, cfg, reuse,
blockNamedNodeData, asyncJob))) blockNamedNodeData, asyncJob)))
return -1; return -1;
if (qemuSnapshotDiskCreate(snapctxt, cfg) < 0) if (qemuSnapshotDiskCreate(snapctxt, cfg) < 0)