a41c76
From 31a752d5bdd63d431b619ec5045b431fc3ca6bef Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <31a752d5bdd63d431b619ec5045b431fc3ca6bef@dist-git>
a41c76
From: Peter Krempa <pkrempa@redhat.com>
a41c76
Date: Tue, 21 Jul 2020 13:56:24 +0200
a41c76
Subject: [PATCH] qemuDomainBlockPivot: Rename 'actions' to 'bitmapactions'
a41c76
a41c76
There are two possible 'transaction' command arguments in the function.
a41c76
Rename 'actions' as they deal with creating bitmaps only.
a41c76
a41c76
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
a41c76
Reviewed-by: Eric Blake <eblake@redhat.com>
a41c76
(cherry picked from commit 24ac1a7c04fded2f8639478abead72bb57506162)
a41c76
a41c76
rhel-8.3: https://bugzilla.redhat.com/show_bug.cgi?id=1857779
a41c76
rhel-av-8.2.1: not cloned yet
a41c76
Message-Id: <6a3969721f1e701a16eb3679dcc37c9908c753ae.1595332476.git.pkrempa@redhat.com>
a41c76
a41c76
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
a41c76
---
a41c76
 src/qemu/qemu_driver.c | 14 +++++++-------
a41c76
 1 file changed, 7 insertions(+), 7 deletions(-)
a41c76
a41c76
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
a41c76
index ad5ef7d67d..454d7b1c16 100644
a41c76
--- a/src/qemu/qemu_driver.c
a41c76
+++ b/src/qemu/qemu_driver.c
a41c76
@@ -17564,7 +17564,7 @@ qemuDomainBlockPivot(virQEMUDriverPtr driver,
a41c76
     int ret = -1;
a41c76
     qemuDomainObjPrivatePtr priv = vm->privateData;
a41c76
     bool blockdev = virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV);
a41c76
-    g_autoptr(virJSONValue) actions = NULL;
a41c76
+    g_autoptr(virJSONValue) bitmapactions = NULL;
a41c76
     g_autoptr(virJSONValue) reopenactions = NULL;
a41c76
 
a41c76
     if (job->state != QEMU_BLOCKJOB_STATE_READY) {
a41c76
@@ -17597,9 +17597,9 @@ qemuDomainBlockPivot(virQEMUDriverPtr driver,
a41c76
             bool shallow = job->jobflags & VIR_DOMAIN_BLOCK_COPY_SHALLOW;
a41c76
             bool reuse = job->jobflags & VIR_DOMAIN_BLOCK_COPY_REUSE_EXT;
a41c76
 
a41c76
-            actions = virJSONValueNewArray();
a41c76
+            bitmapactions = virJSONValueNewArray();
a41c76
 
a41c76
-            if (qemuMonitorTransactionBitmapAdd(actions,
a41c76
+            if (qemuMonitorTransactionBitmapAdd(bitmapactions,
a41c76
                                                 disk->mirror->nodeformat,
a41c76
                                                 "libvirt-tmp-activewrite",
a41c76
                                                 false,
a41c76
@@ -17632,9 +17632,9 @@ qemuDomainBlockPivot(virQEMUDriverPtr driver,
a41c76
 
a41c76
     case QEMU_BLOCKJOB_TYPE_ACTIVE_COMMIT:
a41c76
         if (blockdev) {
a41c76
-            actions = virJSONValueNewArray();
a41c76
+            bitmapactions = virJSONValueNewArray();
a41c76
 
a41c76
-            if (qemuMonitorTransactionBitmapAdd(actions,
a41c76
+            if (qemuMonitorTransactionBitmapAdd(bitmapactions,
a41c76
                                                 job->data.commit.base->nodeformat,
a41c76
                                                 "libvirt-tmp-activewrite",
a41c76
                                                 false,
a41c76
@@ -17658,8 +17658,8 @@ qemuDomainBlockPivot(virQEMUDriverPtr driver,
a41c76
             }
a41c76
         }
a41c76
 
a41c76
-        if (actions && rc == 0)
a41c76
-            rc = qemuMonitorTransaction(priv->mon, &actions);
a41c76
+        if (bitmapactions && rc == 0)
a41c76
+            rc = qemuMonitorTransaction(priv->mon, &bitmapactions);
a41c76
 
a41c76
         if (rc == 0)
a41c76
             ret = qemuMonitorJobComplete(priv->mon, job->name);
a41c76
-- 
a41c76
2.27.0
a41c76