]>
Commit | Line | Data |
---|---|---|
059a9447 FG |
1 | From daec2f64e120a23a8d263f7d058bd84c48397bc8 Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com> | |
3 | Date: Mon, 17 Feb 2020 11:59:20 +0100 | |
4 | Subject: [PATCH qemu 36/39] mirror: add check for bitmap-mode without bitmap | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | as one without the other does not make much sense with the current set | |
10 | of modes. | |
11 | ||
12 | Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> | |
13 | --- | |
14 | blockdev.c | 3 +++ | |
15 | 1 file changed, 3 insertions(+) | |
16 | ||
17 | diff --git a/blockdev.c b/blockdev.c | |
18 | index 08285b9e86..768a0b0fd4 100644 | |
19 | --- a/blockdev.c | |
20 | +++ b/blockdev.c | |
21 | @@ -3861,6 +3861,9 @@ static void blockdev_mirror_common(const char *job_id, BlockDriverState *bs, | |
22 | if (bdrv_dirty_bitmap_check(bitmap, BDRV_BITMAP_ALLOW_RO, errp)) { | |
23 | return; | |
24 | } | |
25 | + } else if (has_bitmap_mode) { | |
26 | + error_setg(errp, "Cannot specify bitmap sync mode without a bitmap"); | |
27 | + return; | |
28 | } | |
29 | ||
30 | if (has_replaces) { | |
31 | -- | |
32 | 2.20.1 | |
33 |