Blame SOURCES/libvirt-qemu-checkpoint-rename-disk-chkdisk-in-qemuCheckpointAddActions.patch

d76c62
From 7a23710e912348efb55a98e7c6e6d1cc7f452b1f Mon Sep 17 00:00:00 2001
d76c62
Message-Id: <7a23710e912348efb55a98e7c6e6d1cc7f452b1f@dist-git>
d76c62
From: Peter Krempa <pkrempa@redhat.com>
d76c62
Date: Tue, 4 Feb 2020 15:07:52 +0100
d76c62
Subject: [PATCH] qemu: checkpoint: rename disk->chkdisk in
d76c62
 qemuCheckpointAddActions
d76c62
MIME-Version: 1.0
d76c62
Content-Type: text/plain; charset=UTF-8
d76c62
Content-Transfer-Encoding: 8bit
d76c62
d76c62
Upcoming patches will also use the domain disk definition. Rename disk
d76c62
to chkdisk for clarity.
d76c62
d76c62
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
d76c62
Reviewed-by: Eric Blake <eblake@redhat.com>
d76c62
(cherry picked from commit f3e0a45a00465a6f19f510f7806ade1764a7e162)
d76c62
d76c62
https://bugzilla.redhat.com/show_bug.cgi?id=1207659
d76c62
Message-Id: <ef78ad0aa581d70c4f007665cd00988796c02c8f.1580824112.git.pkrempa@redhat.com>
d76c62
Reviewed-by: Ján Tomko <jtomko@redhat.com>
d76c62
---
d76c62
 src/qemu/qemu_checkpoint.c | 10 +++++-----
d76c62
 1 file changed, 5 insertions(+), 5 deletions(-)
d76c62
d76c62
diff --git a/src/qemu/qemu_checkpoint.c b/src/qemu/qemu_checkpoint.c
d76c62
index d347b8fc6c..0aa854324b 100644
d76c62
--- a/src/qemu/qemu_checkpoint.c
d76c62
+++ b/src/qemu/qemu_checkpoint.c
d76c62
@@ -319,13 +319,13 @@ qemuCheckpointAddActions(virDomainObjPtr vm,
d76c62
     bool search_parents;
d76c62
 
d76c62
     for (i = 0; i < def->ndisks; i++) {
d76c62
-        virDomainCheckpointDiskDef *disk = &def->disks[i];
d76c62
+        virDomainCheckpointDiskDef *chkdisk = &def->disks[i];
d76c62
         const char *node;
d76c62
 
d76c62
-        if (disk->type != VIR_DOMAIN_CHECKPOINT_TYPE_BITMAP)
d76c62
+        if (chkdisk->type != VIR_DOMAIN_CHECKPOINT_TYPE_BITMAP)
d76c62
             continue;
d76c62
-        node = qemuDomainDiskNodeFormatLookup(vm, disk->name);
d76c62
-        if (qemuMonitorTransactionBitmapAdd(actions, node, disk->bitmap, true, false, 0) < 0)
d76c62
+        node = qemuDomainDiskNodeFormatLookup(vm, chkdisk->name);
d76c62
+        if (qemuMonitorTransactionBitmapAdd(actions, node, chkdisk->bitmap, true, false, 0) < 0)
d76c62
             return -1;
d76c62
 
d76c62
         /* We only want one active bitmap for a disk along the
d76c62
@@ -345,7 +345,7 @@ qemuCheckpointAddActions(virDomainObjPtr vm,
d76c62
                 virDomainCheckpointDiskDef *disk2;
d76c62
 
d76c62
                 disk2 = &olddef->disks[j];
d76c62
-                if (STRNEQ(disk->name, disk2->name) ||
d76c62
+                if (STRNEQ(chkdisk->name, disk2->name) ||
d76c62
                     disk2->type != VIR_DOMAIN_CHECKPOINT_TYPE_BITMAP)
d76c62
                     continue;
d76c62
                 if (qemuMonitorTransactionBitmapDisable(actions, node, disk2->bitmap) < 0)
d76c62
-- 
d76c62
2.25.0
d76c62