mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemuSnapshotRedefine: Rename 'def' to 'snapdef'
'def' is commonly used to refer to domain definition. Most of the snapshot code uses 'snapdef' for the snapshot definition. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
164aba8c4a
commit
56f4ec311f
@ -1709,7 +1709,7 @@ qemuSnapshotCreateWriteMetadata(virDomainObj *vm,
|
|||||||
static virDomainSnapshotPtr
|
static virDomainSnapshotPtr
|
||||||
qemuSnapshotRedefine(virDomainObj *vm,
|
qemuSnapshotRedefine(virDomainObj *vm,
|
||||||
virDomainPtr domain,
|
virDomainPtr domain,
|
||||||
virDomainSnapshotDef *def,
|
virDomainSnapshotDef *snapdef,
|
||||||
virQEMUDriver *driver,
|
virQEMUDriver *driver,
|
||||||
virQEMUDriverConfig *cfg,
|
virQEMUDriverConfig *cfg,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
@ -1717,13 +1717,13 @@ qemuSnapshotRedefine(virDomainObj *vm,
|
|||||||
virDomainMomentObj *snap = NULL;
|
virDomainMomentObj *snap = NULL;
|
||||||
virDomainSnapshotPtr ret = NULL;
|
virDomainSnapshotPtr ret = NULL;
|
||||||
|
|
||||||
if (virDomainSnapshotRedefinePrep(vm, &def, &snap,
|
if (virDomainSnapshotRedefinePrep(vm, &snapdef, &snap,
|
||||||
driver->xmlopt,
|
driver->xmlopt,
|
||||||
flags) < 0)
|
flags) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!snap) {
|
if (!snap) {
|
||||||
if (!(snap = virDomainSnapshotAssignDef(vm->snapshots, def)))
|
if (!(snap = virDomainSnapshotAssignDef(vm->snapshots, snapdef)))
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
/* XXX Should we validate that the redefined snapshot even
|
/* XXX Should we validate that the redefined snapshot even
|
||||||
|
Loading…
Reference in New Issue
Block a user