|
|
d76c62 |
From 4a0a0c37c0f3ea2c8eb6b96b07c990d7a4ce1c8b Mon Sep 17 00:00:00 2001
|
|
|
d76c62 |
Message-Id: <4a0a0c37c0f3ea2c8eb6b96b07c990d7a4ce1c8b@dist-git>
|
|
|
d76c62 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
d76c62 |
Date: Tue, 4 Feb 2020 15:07:51 +0100
|
|
|
d76c62 |
Subject: [PATCH] qemu: checkpoint: rename disk->chkdisk in
|
|
|
d76c62 |
qemuCheckpointDiscardBitmaps
|
|
|
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 a303e8ea47c9a2caa39ae744c0bf9a2f724a6137)
|
|
|
d76c62 |
|
|
|
d76c62 |
https://bugzilla.redhat.com/show_bug.cgi?id=1207659
|
|
|
d76c62 |
Message-Id: <0799859ad288a747f1d12dd07bbb403053d78457.1580824112.git.pkrempa@redhat.com>
|
|
|
d76c62 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
d76c62 |
---
|
|
|
d76c62 |
src/qemu/qemu_checkpoint.c | 12 ++++++------
|
|
|
d76c62 |
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
d76c62 |
|
|
|
d76c62 |
diff --git a/src/qemu/qemu_checkpoint.c b/src/qemu/qemu_checkpoint.c
|
|
|
d76c62 |
index 9ff3129570..d347b8fc6c 100644
|
|
|
d76c62 |
--- a/src/qemu/qemu_checkpoint.c
|
|
|
d76c62 |
+++ b/src/qemu/qemu_checkpoint.c
|
|
|
d76c62 |
@@ -124,13 +124,13 @@ qemuCheckpointDiscardBitmaps(virDomainObjPtr vm,
|
|
|
d76c62 |
return -1;
|
|
|
d76c62 |
|
|
|
d76c62 |
for (i = 0; i < chkdef->ndisks; i++) {
|
|
|
d76c62 |
- virDomainCheckpointDiskDef *disk = &chkdef->disks[i];
|
|
|
d76c62 |
+ virDomainCheckpointDiskDef *chkdisk = &chkdef->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 |
|
|
|
d76c62 |
- node = qemuDomainDiskNodeFormatLookup(vm, disk->name);
|
|
|
d76c62 |
+ node = qemuDomainDiskNodeFormatLookup(vm, chkdisk->name);
|
|
|
d76c62 |
/* If any ancestor checkpoint has a bitmap for the same
|
|
|
d76c62 |
* disk, then this bitmap must be merged to the
|
|
|
d76c62 |
* ancestor. */
|
|
|
d76c62 |
@@ -145,7 +145,7 @@ qemuCheckpointDiscardBitmaps(virDomainObjPtr vm,
|
|
|
d76c62 |
g_autoptr(virJSONValue) arr = NULL;
|
|
|
d76c62 |
|
|
|
d76c62 |
disk2 = &parentdef->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 |
search_parents = false;
|
|
|
d76c62 |
@@ -153,7 +153,7 @@ qemuCheckpointDiscardBitmaps(virDomainObjPtr vm,
|
|
|
d76c62 |
if (!(arr = virJSONValueNewArray()))
|
|
|
d76c62 |
return -1;
|
|
|
d76c62 |
|
|
|
d76c62 |
- if (qemuMonitorTransactionBitmapMergeSourceAddBitmap(arr, node, disk->bitmap) < 0)
|
|
|
d76c62 |
+ if (qemuMonitorTransactionBitmapMergeSourceAddBitmap(arr, node, chkdisk->bitmap) < 0)
|
|
|
d76c62 |
return -1;
|
|
|
d76c62 |
|
|
|
d76c62 |
if (chkcurrent) {
|
|
|
d76c62 |
@@ -166,7 +166,7 @@ qemuCheckpointDiscardBitmaps(virDomainObjPtr vm,
|
|
|
d76c62 |
}
|
|
|
d76c62 |
}
|
|
|
d76c62 |
|
|
|
d76c62 |
- if (qemuMonitorTransactionBitmapRemove(actions, node, disk->bitmap) < 0)
|
|
|
d76c62 |
+ if (qemuMonitorTransactionBitmapRemove(actions, node, chkdisk->bitmap) < 0)
|
|
|
d76c62 |
return -1;
|
|
|
d76c62 |
}
|
|
|
d76c62 |
|
|
|
d76c62 |
--
|
|
|
d76c62 |
2.25.0
|
|
|
d76c62 |
|