Files
pve-qemu-qoup/debian/patches/bitmap-mirror/0003-mirror-add-check-for-bitmap-mode-without-bitmap.patch
T

32 lines
1.1 KiB
Diff
Raw Normal View History

2020-04-07 16:53:19 +02:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2020-03-17 08:55:24 +01:00
From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
2020-04-07 16:53:19 +02:00
Date: Mon, 6 Apr 2020 12:17:05 +0200
Subject: [PATCH] mirror: add check for bitmap-mode without bitmap
2020-03-17 08:55:24 +01:00
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>
2022-01-13 10:34:33 +01:00
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-03-17 08:55:24 +01:00
---
blockdev.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/blockdev.c b/blockdev.c
2022-12-14 15:16:32 +01:00
index 2ee30323cb..dd1c2cdef7 100644
2020-03-17 08:55:24 +01:00
--- a/blockdev.c
+++ b/blockdev.c
2022-12-14 15:16:32 +01:00
@@ -3045,6 +3045,9 @@ static void blockdev_mirror_common(const char *job_id, BlockDriverState *bs,
2020-03-17 08:55:24 +01:00
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;
}
2021-02-11 17:11:11 +01:00
if (!has_replaces) {