mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
qemu_snapshot: revert: rename qemuSnapshotRevertInactive
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0c9d25481a
commit
405375ceb0
@ -2126,9 +2126,9 @@ qemuSnapshotRevertActive(virDomainObj *vm,
|
|||||||
|
|
||||||
/* The domain is expected to be locked and inactive. */
|
/* The domain is expected to be locked and inactive. */
|
||||||
static int
|
static int
|
||||||
qemuSnapshotRevertInactive(virQEMUDriver *driver,
|
qemuSnapshotInternalRevertInactive(virQEMUDriver *driver,
|
||||||
virDomainObj *vm,
|
virDomainObj *vm,
|
||||||
virDomainMomentObj *snap)
|
virDomainMomentObj *snap)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
@ -2242,7 +2242,7 @@ qemuSnapshotRevert(virDomainObj *vm,
|
|||||||
virObjectEventStateQueue(driver->domainEventState, event);
|
virObjectEventStateQueue(driver->domainEventState, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (qemuSnapshotRevertInactive(driver, vm, snap) < 0) {
|
if (qemuSnapshotInternalRevertInactive(driver, vm, snap) < 0) {
|
||||||
qemuDomainRemoveInactive(driver, vm);
|
qemuDomainRemoveInactive(driver, vm);
|
||||||
goto endjob;
|
goto endjob;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user