|
|
119c2d |
From 1911ebd62779701aae271dd3e047415bfd2cd303 Mon Sep 17 00:00:00 2001
|
|
|
119c2d |
Message-Id: <1911ebd62779701aae271dd3e047415bfd2cd303@dist-git>
|
|
|
119c2d |
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
|
|
|
119c2d |
Date: Thu, 20 Jan 2022 14:53:33 +0100
|
|
|
119c2d |
Subject: [PATCH] qemu: fix inactive snapshot revert
|
|
|
119c2d |
MIME-Version: 1.0
|
|
|
119c2d |
Content-Type: text/plain; charset=UTF-8
|
|
|
119c2d |
Content-Transfer-Encoding: 8bit
|
|
|
119c2d |
|
|
|
119c2d |
The commit splitting out the qemuSnapshotRevertInactive function
|
|
|
119c2d |
dropped the 'defined = true' line by accident and instead
|
|
|
119c2d |
returned -1, leaving the user with a cryptic error:
|
|
|
119c2d |
error: An error occurred, but the cause is unknown
|
|
|
119c2d |
|
|
|
119c2d |
https://bugzilla.redhat.com/show_bug.cgi?id=2039136
|
|
|
119c2d |
https://gitlab.com/libvirt/libvirt/-/issues/266
|
|
|
119c2d |
|
|
|
119c2d |
Fixes: 85e4a13c3f19078fb6af5ffb4a80022c142cbc7e
|
|
|
119c2d |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
119c2d |
(cherry picked from commit 76deb656132bb8817ddae4b7f417930c4db824c9)
|
|
|
119c2d |
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
|
119c2d |
---
|
|
|
119c2d |
src/qemu/qemu_snapshot.c | 2 +-
|
|
|
119c2d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
119c2d |
|
|
|
119c2d |
diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c
|
|
|
119c2d |
index f92e00f9c0..ac7bab90f8 100644
|
|
|
119c2d |
--- a/src/qemu/qemu_snapshot.c
|
|
|
119c2d |
+++ b/src/qemu/qemu_snapshot.c
|
|
|
119c2d |
@@ -2193,7 +2193,7 @@ qemuSnapshotRevertInactive(virDomainObj *vm,
|
|
|
119c2d |
|
|
|
119c2d |
if (*inactiveConfig) {
|
|
|
119c2d |
virDomainObjAssignDef(vm, inactiveConfig, false, NULL);
|
|
|
119c2d |
- return -1;
|
|
|
119c2d |
+ defined = true;
|
|
|
119c2d |
}
|
|
|
119c2d |
|
|
|
119c2d |
if (flags & (VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING |
|
|
|
119c2d |
--
|
|
|
119c2d |
2.35.0
|
|
|
119c2d |
|