mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
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:
parent
f4b6e71611
commit
8eacbeac74
@ -1151,13 +1151,13 @@ qemuSnapshotDiskUpdateSource(virQEMUDriverPtr driver,
|
||||
|
||||
/* The domain is expected to be locked and active. */
|
||||
static int
|
||||
qemuSnapshotCreateDiskActive(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
virDomainMomentObjPtr snap,
|
||||
virHashTablePtr blockNamedNodeData,
|
||||
unsigned int flags,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
qemuDomainAsyncJob asyncJob)
|
||||
qemuSnapshotCreateActiveExternalDisks(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
virDomainMomentObjPtr snap,
|
||||
virHashTablePtr blockNamedNodeData,
|
||||
unsigned int flags,
|
||||
virQEMUDriverConfigPtr cfg,
|
||||
qemuDomainAsyncJob asyncJob)
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
g_autoptr(virJSONValue) actions = NULL;
|
||||
@ -1346,9 +1346,9 @@ qemuSnapshotCreateActiveExternal(virQEMUDriverPtr driver,
|
||||
|
||||
/* the domain is now paused if a memory snapshot was requested */
|
||||
|
||||
if ((ret = qemuSnapshotCreateDiskActive(driver, vm, snap,
|
||||
blockNamedNodeData, flags, cfg,
|
||||
QEMU_ASYNC_JOB_SNAPSHOT)) < 0)
|
||||
if ((ret = qemuSnapshotCreateActiveExternalDisks(driver, vm, snap,
|
||||
blockNamedNodeData, flags, cfg,
|
||||
QEMU_ASYNC_JOB_SNAPSHOT)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
/* the snapshot is complete now */
|
||||
|
Loading…
Reference in New Issue
Block a user