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