qemu: snapshot: Rename 'qemuSnapshotCreateDiskActive' to 'qemuSnapshotCreateActiveExternalDisks'

Be more specific about the role of the function. It's creating the disk
portion of an external active snapshot.

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 14:15:15 +02:00
parent f4b6e71611
commit 8eacbeac74

View File

@ -1151,7 +1151,7 @@ qemuSnapshotDiskUpdateSource(virQEMUDriverPtr driver,
/* The domain is expected to be locked and active. */ /* The domain is expected to be locked and active. */
static int static int
qemuSnapshotCreateDiskActive(virQEMUDriverPtr driver, qemuSnapshotCreateActiveExternalDisks(virQEMUDriverPtr driver,
virDomainObjPtr vm, virDomainObjPtr vm,
virDomainMomentObjPtr snap, virDomainMomentObjPtr snap,
virHashTablePtr blockNamedNodeData, virHashTablePtr blockNamedNodeData,
@ -1346,7 +1346,7 @@ qemuSnapshotCreateActiveExternal(virQEMUDriverPtr driver,
/* the domain is now paused if a memory snapshot was requested */ /* the domain is now paused if a memory snapshot was requested */
if ((ret = qemuSnapshotCreateDiskActive(driver, vm, snap, if ((ret = qemuSnapshotCreateActiveExternalDisks(driver, vm, snap,
blockNamedNodeData, flags, cfg, blockNamedNodeData, flags, cfg,
QEMU_ASYNC_JOB_SNAPSHOT)) < 0) QEMU_ASYNC_JOB_SNAPSHOT)) < 0)
goto cleanup; goto cleanup;