[libvirt PATCH 11/11] qemu_snapshot: create: drop redefine boolean

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/qemu/qemu_snapshot.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c
index c5f0a5afe8..2b4d8e801b 100644
--- a/src/qemu/qemu_snapshot.c
+++ b/src/qemu/qemu_snapshot.c
@@ -1840,7 +1840,6 @@ qemuSnapshotCreateXML(virDomainPtr domain,
 {
     virQEMUDriver *driver = domain->conn->privateData;
     virDomainSnapshotPtr snapshot = NULL;
-    bool redefine = flags & VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE;
     g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);
     g_autoptr(virDomainSnapshotDef) def = NULL;
 
@@ -1887,7 +1886,7 @@ qemuSnapshotCreateXML(virDomainPtr domain,
 
     qemuDomainObjSetAsyncJobMask(vm, QEMU_JOB_NONE);
 
-    if (redefine) {
+    if (flags & VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE) {
         snapshot = qemuSnapshotRedefine(vm, domain, def, driver, cfg, flags);
     } else {
         snapshot = qemuSnapshotCreate(vm, domain, def, driver, cfg, flags);
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux