mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
conf: Drop pointless 'domain' argument from virDomainSnapshotRedefinePrep
'vm' is passed in which contains the definition which contains the UUID so we don't need another parameter for this. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
4c94f8d8c1
commit
efeb6232c6
@ -986,8 +986,7 @@ virDomainSnapshotIsExternal(virDomainMomentObjPtr snap)
|
||||
}
|
||||
|
||||
int
|
||||
virDomainSnapshotRedefinePrep(virDomainPtr domain,
|
||||
virDomainObjPtr vm,
|
||||
virDomainSnapshotRedefinePrep(virDomainObjPtr vm,
|
||||
virDomainSnapshotDefPtr *defptr,
|
||||
virDomainMomentObjPtr *snap,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
@ -1006,7 +1005,7 @@ virDomainSnapshotRedefinePrep(virDomainPtr domain,
|
||||
if (other)
|
||||
otherdef = virDomainSnapshotObjGetDef(other);
|
||||
check_if_stolen = other && otherdef->parent.dom;
|
||||
if (virDomainSnapshotRedefineValidate(def, domain->uuid, other, xmlopt,
|
||||
if (virDomainSnapshotRedefineValidate(def, vm->def->uuid, other, xmlopt,
|
||||
flags) < 0) {
|
||||
/* revert any stealing of the snapshot domain definition */
|
||||
if (check_if_stolen && def->parent.dom && !otherdef->parent.dom)
|
||||
|
@ -129,8 +129,7 @@ int virDomainSnapshotAlignDisks(virDomainSnapshotDefPtr snapshot,
|
||||
bool virDomainSnapshotDefIsExternal(virDomainSnapshotDefPtr def);
|
||||
bool virDomainSnapshotIsExternal(virDomainMomentObjPtr snap);
|
||||
|
||||
int virDomainSnapshotRedefinePrep(virDomainPtr domain,
|
||||
virDomainObjPtr vm,
|
||||
int virDomainSnapshotRedefinePrep(virDomainObjPtr vm,
|
||||
virDomainSnapshotDefPtr *def,
|
||||
virDomainMomentObjPtr *snap,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
|
@ -15969,7 +15969,7 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain,
|
||||
qemuDomainObjSetAsyncJobMask(vm, QEMU_JOB_NONE);
|
||||
|
||||
if (redefine) {
|
||||
if (virDomainSnapshotRedefinePrep(domain, vm, &def, &snap,
|
||||
if (virDomainSnapshotRedefinePrep(vm, &def, &snap,
|
||||
driver->xmlopt,
|
||||
&update_current, flags) < 0)
|
||||
goto endjob;
|
||||
|
@ -8612,7 +8612,7 @@ testDomainSnapshotCreateXML(virDomainPtr domain,
|
||||
goto cleanup;
|
||||
|
||||
if (redefine) {
|
||||
if (virDomainSnapshotRedefinePrep(domain, vm, &def, &snap,
|
||||
if (virDomainSnapshotRedefinePrep(vm, &def, &snap,
|
||||
privconn->xmlopt,
|
||||
&update_current, flags) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user