mirror of
https://git.proxmox.com/git/pve-qemu
synced 2025-10-06 04:25:39 +00:00

Notable changes, most interestingly the two build system changes: * avoid making 'migration' target depend on 'libproxmox_backup_qemu': Having pbs-state.c be part of the 'migration_files' makes the 'migration' target depend on 'libproxmox_backup_qemu'. Adding the dependency to 'migration' and 'libmigration' would not be enough however, because pbs-state.c depends on savevm.c (for register_savevm_live()), and savevm.c is not itself part of the 'migration_files' and would need to be moved too. Otherwise, linking the 'test-xbzrle' unit test is broken. Instead, don't declare pbs-state.c to be part of the 'migration_files'. * meson: pbs-restore + vma: add qemuutil dependency explicitly Both pbs-restore and vma use "qemu/osdep.h" so the dependency is present. Being explicit is required after commit 414b180d42 ("meson: Pass objects and dependencies to declare_dependency()"). * QAPI docs "Notes:" to ".. note::" conversion following commit d461c27973 ("qapi: convert "Note" sections to plain rST"). * Removal of QERR_* macros following commit a95921f171 ("qapi: Inline and remove QERR_DEVICE_HAS_NO_MEDIUM definition") and friends. * Signature change for .save_setup callbacks following commit 01c3ac681b ("migration: Add Error** argument to .save_setup() handler"). * Removal of separate .bdrv_file_open callbacks following commit 44b424dc4a ("block: remove separate bdrv_file_open callback") * Adapt dirty bitmap migration error handling following commit dd03167725 ("migration: Add Error** argument to add_bitmaps_to_list()") * Adapt savevm async to removed block migration following commit eef0bae3a7 ("migration: Remove block migration") Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
|
|
Date: Mon, 6 Apr 2020 12:17:05 +0200
|
|
Subject: [PATCH] mirror: add check for bitmap-mode without bitmap
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
as one without the other does not make much sense with the current set
|
|
of modes.
|
|
|
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
---
|
|
blockdev.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/blockdev.c b/blockdev.c
|
|
index 9b10e3917c..c3fa897289 100644
|
|
--- a/blockdev.c
|
|
+++ b/blockdev.c
|
|
@@ -2875,6 +2875,9 @@ static void blockdev_mirror_common(const char *job_id, BlockDriverState *bs,
|
|
if (bdrv_dirty_bitmap_check(bitmap, BDRV_BITMAP_ALLOW_RO, errp)) {
|
|
return;
|
|
}
|
|
+ } else if (has_bitmap_mode) {
|
|
+ error_setg(errp, "Cannot specify bitmap sync mode without a bitmap");
|
|
+ return;
|
|
}
|
|
|
|
if (!replaces) {
|