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