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