mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
qemu_snapshot: rename qemuSnapshotDeleteExternalPrepare
The new name reflects that we prepare data for external snapshot deletion and the old name will be used later for different part of code. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
8e66473781
commit
443221bbf1
@ -2623,7 +2623,7 @@ qemuSnapshotFindParentSnapForDisk(virDomainMomentObj *snap,
|
||||
|
||||
|
||||
static int
|
||||
qemuSnapshotDeleteExternalPrepare(virDomainObj *vm,
|
||||
qemuSnapshotDeleteExternalPrepareData(virDomainObj *vm,
|
||||
virDomainMomentObj *snap,
|
||||
GSList **externalData)
|
||||
{
|
||||
@ -3482,7 +3482,7 @@ qemuSnapshotDelete(virDomainObj *vm,
|
||||
g_autoslist(qemuSnapshotDeleteExternalData) tmpData = NULL;
|
||||
|
||||
/* this also serves as validation whether the snapshot can be deleted */
|
||||
if (qemuSnapshotDeleteExternalPrepare(vm, snap, &tmpData) < 0)
|
||||
if (qemuSnapshotDeleteExternalPrepareData(vm, snap, &tmpData) < 0)
|
||||
goto endjob;
|
||||
|
||||
if (!virDomainObjIsActive(vm)) {
|
||||
@ -3497,7 +3497,7 @@ qemuSnapshotDelete(virDomainObj *vm,
|
||||
|
||||
/* Call the prepare again as some data require that the VM is
|
||||
* running to get everything we need. */
|
||||
if (qemuSnapshotDeleteExternalPrepare(vm, snap, &externalData) < 0)
|
||||
if (qemuSnapshotDeleteExternalPrepareData(vm, snap, &externalData) < 0)
|
||||
goto endjob;
|
||||
} else {
|
||||
qemuDomainJobPrivate *jobPriv = vm->job->privateData;
|
||||
|
Loading…
Reference in New Issue
Block a user