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