d03e1b3ce3
User-facing breaking change: The slirp submodule for user networking got removed. It would be necessary to add the --enable-slirp option to the build and/or install the appropriate library to continue building it. Since PVE is not explicitly supporting it, it would require additionally installing the libslirp0 package on all installations and there is *very* little mention on the community forum when searching for "slirp" or "netdev user", the plan is to only enable it again if there is some real demand for it. Notable changes: * The big change for this release is the rework of job locking, using a job mutex and introducing _locked() variants of job API functions moving away from call-side AioContext locking. See (in the qemu submodule) commit 6f592e5aca ("job.c: enable job lock/unlock and remove Aiocontext locks") and previous commits for context. Changes required for the backup patches: * Use WITH_JOB_LOCK_GUARD() and call the _locked() variant of job API functions where appropriate (many are only availalbe as a _locked() variant). * Remove acquiring/releasing AioContext around functions taking the job mutex lock internally. The patch introducing sequential transaction support for jobs needs to temporarily unlock the job mutex to call job_start() when starting the next job in the transaction. * The zeroinit block driver now marks its child as primary. The documentation in include/block/block-common.h states: > Filter node has exactly one FILTERED|PRIMARY child, and may have > other children which must not have these bits Without this, an assert will trigger when copying to a zeroinit target with qemu-img convert, because bdrv_child_cb_attach() expects any non-PRIMARY child to be not FILTERED: > qemu-img convert -n -p -f raw -O raw input.raw zeroinit:output.raw > qemu-img: ../block.c:1476: bdrv_child_cb_attach: Assertion > `!(child->role & BDRV_CHILD_FILTERED)' failed. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
274 lines
19 KiB
Diff
274 lines
19 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:08 +0200
|
|
Subject: [PATCH] mirror: move some checks to qmp
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
and assert the passing conditions in block/mirror.c. while incremental
|
|
mode was never available for drive-mirror, it makes the interface more
|
|
uniform w.r.t. backup block jobs.
|
|
|
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
---
|
|
block/mirror.c | 28 +++------------
|
|
blockdev.c | 29 +++++++++++++++
|
|
tests/qemu-iotests/384.out | 72 +++++++++++++++++++-------------------
|
|
3 files changed, 70 insertions(+), 59 deletions(-)
|
|
|
|
diff --git a/block/mirror.c b/block/mirror.c
|
|
index 4969c6833c..cf85ae1074 100644
|
|
--- a/block/mirror.c
|
|
+++ b/block/mirror.c
|
|
@@ -1668,31 +1668,13 @@ static BlockJob *mirror_start_job(
|
|
uint64_t target_perms, target_shared_perms;
|
|
int ret;
|
|
|
|
- if (sync_mode == MIRROR_SYNC_MODE_INCREMENTAL) {
|
|
- error_setg(errp, "Sync mode '%s' not supported",
|
|
- MirrorSyncMode_str(sync_mode));
|
|
- return NULL;
|
|
- } else if (sync_mode == MIRROR_SYNC_MODE_BITMAP) {
|
|
- if (!bitmap) {
|
|
- error_setg(errp, "Must provide a valid bitmap name for '%s'"
|
|
- " sync mode",
|
|
- MirrorSyncMode_str(sync_mode));
|
|
- return NULL;
|
|
- }
|
|
- } else if (bitmap) {
|
|
- error_setg(errp,
|
|
- "sync mode '%s' is not compatible with bitmaps",
|
|
- MirrorSyncMode_str(sync_mode));
|
|
- return NULL;
|
|
- }
|
|
+ /* QMP interface protects us from these cases */
|
|
+ assert(sync_mode != MIRROR_SYNC_MODE_INCREMENTAL);
|
|
+ assert((bitmap && sync_mode == MIRROR_SYNC_MODE_BITMAP) ||
|
|
+ (!bitmap && sync_mode != MIRROR_SYNC_MODE_BITMAP));
|
|
+ assert(!(bitmap && granularity));
|
|
|
|
if (bitmap) {
|
|
- if (granularity) {
|
|
- error_setg(errp, "granularity (%d)"
|
|
- "cannot be specified when a bitmap is provided",
|
|
- granularity);
|
|
- return NULL;
|
|
- }
|
|
granularity = bdrv_dirty_bitmap_granularity(bitmap);
|
|
|
|
if (bitmap_mode != BITMAP_SYNC_MODE_NEVER) {
|
|
diff --git a/blockdev.c b/blockdev.c
|
|
index dd1c2cdef7..756e980889 100644
|
|
--- a/blockdev.c
|
|
+++ b/blockdev.c
|
|
@@ -3024,7 +3024,36 @@ static void blockdev_mirror_common(const char *job_id, BlockDriverState *bs,
|
|
sync = MIRROR_SYNC_MODE_FULL;
|
|
}
|
|
|
|
+ if ((sync == MIRROR_SYNC_MODE_BITMAP) ||
|
|
+ (sync == MIRROR_SYNC_MODE_INCREMENTAL)) {
|
|
+ /* done before desugaring 'incremental' to print the right message */
|
|
+ if (!has_bitmap) {
|
|
+ error_setg(errp, "Must provide a valid bitmap name for "
|
|
+ "'%s' sync mode", MirrorSyncMode_str(sync));
|
|
+ return;
|
|
+ }
|
|
+ }
|
|
+
|
|
+ if (sync == MIRROR_SYNC_MODE_INCREMENTAL) {
|
|
+ if (has_bitmap_mode &&
|
|
+ bitmap_mode != BITMAP_SYNC_MODE_ON_SUCCESS) {
|
|
+ error_setg(errp, "Bitmap sync mode must be '%s' "
|
|
+ "when using sync mode '%s'",
|
|
+ BitmapSyncMode_str(BITMAP_SYNC_MODE_ON_SUCCESS),
|
|
+ MirrorSyncMode_str(sync));
|
|
+ return;
|
|
+ }
|
|
+ has_bitmap_mode = true;
|
|
+ sync = MIRROR_SYNC_MODE_BITMAP;
|
|
+ bitmap_mode = BITMAP_SYNC_MODE_ON_SUCCESS;
|
|
+ }
|
|
+
|
|
if (has_bitmap) {
|
|
+ if (sync != MIRROR_SYNC_MODE_BITMAP) {
|
|
+ error_setg(errp, "Sync mode '%s' not supported with bitmap.",
|
|
+ MirrorSyncMode_str(sync));
|
|
+ return;
|
|
+ }
|
|
if (granularity) {
|
|
error_setg(errp, "Granularity and bitmap cannot both be set");
|
|
return;
|
|
diff --git a/tests/qemu-iotests/384.out b/tests/qemu-iotests/384.out
|
|
index 9b7408b6d6..06a2e29058 100644
|
|
--- a/tests/qemu-iotests/384.out
|
|
+++ b/tests/qemu-iotests/384.out
|
|
@@ -2681,45 +2681,45 @@ qemu_img compare "TEST_DIR/PID-img" "TEST_DIR/PID-fmirror3" ==> Identical, OK!
|
|
-- Sync mode incremental tests --
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap-mode": "on-success", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Cannot specify bitmap sync mode without a bitmap"}}
|
|
+{"error": {"class": "GenericError", "desc": "Must provide a valid bitmap name for 'incremental' sync mode"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Cannot specify bitmap sync mode without a bitmap"}}
|
|
+{"error": {"class": "GenericError", "desc": "Must provide a valid bitmap name for 'incremental' sync mode"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Cannot specify bitmap sync mode without a bitmap"}}
|
|
+{"error": {"class": "GenericError", "desc": "Must provide a valid bitmap name for 'incremental' sync mode"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Sync mode 'incremental' not supported"}}
|
|
+{"error": {"class": "GenericError", "desc": "Must provide a valid bitmap name for 'incremental' sync mode"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "on-success", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Bitmap sync mode must be 'on-success' when using sync mode 'incremental'"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Bitmap sync mode must be 'on-success' when using sync mode 'incremental'"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "bitmap-mode must be specified if a bitmap is provided"}}
|
|
+{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Sync mode 'incremental' not supported"}}
|
|
+{"error": {"class": "GenericError", "desc": "Bitmap sync mode must be 'on-success' when using sync mode 'incremental'"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "incremental", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Sync mode 'incremental' not supported"}}
|
|
+{"error": {"class": "GenericError", "desc": "Bitmap sync mode must be 'on-success' when using sync mode 'incremental'"}}
|
|
|
|
-- Sync mode bitmap tests --
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap-mode": "on-success", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "bitmap", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Cannot specify bitmap sync mode without a bitmap"}}
|
|
+{"error": {"class": "GenericError", "desc": "Must provide a valid bitmap name for 'bitmap' sync mode"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "bitmap", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Cannot specify bitmap sync mode without a bitmap"}}
|
|
+{"error": {"class": "GenericError", "desc": "Must provide a valid bitmap name for 'bitmap' sync mode"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "bitmap", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Cannot specify bitmap sync mode without a bitmap"}}
|
|
+{"error": {"class": "GenericError", "desc": "Must provide a valid bitmap name for 'bitmap' sync mode"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "bitmap", "target": "mirror_target"}}
|
|
{"error": {"class": "GenericError", "desc": "Must provide a valid bitmap name for 'bitmap' sync mode"}}
|
|
@@ -2751,28 +2751,28 @@ qemu_img compare "TEST_DIR/PID-img" "TEST_DIR/PID-fmirror3" ==> Identical, OK!
|
|
{"error": {"class": "GenericError", "desc": "Cannot specify bitmap sync mode without a bitmap"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "on-success", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "full", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "full", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "full", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "full", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "bitmap-mode must be specified if a bitmap is provided"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "on-success", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "full", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "sync mode 'full' is not compatible with bitmaps"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "full", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "sync mode 'full' is not compatible with bitmaps"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "full", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "sync mode 'full' is not compatible with bitmaps"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "full", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "bitmap-mode must be specified if a bitmap is provided"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
-- Sync mode top tests --
|
|
|
|
@@ -2786,28 +2786,28 @@ qemu_img compare "TEST_DIR/PID-img" "TEST_DIR/PID-fmirror3" ==> Identical, OK!
|
|
{"error": {"class": "GenericError", "desc": "Cannot specify bitmap sync mode without a bitmap"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "on-success", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "top", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "top", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "top", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "top", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "bitmap-mode must be specified if a bitmap is provided"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "on-success", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "top", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "sync mode 'full' is not compatible with bitmaps"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "top", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "sync mode 'full' is not compatible with bitmaps"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "top", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "sync mode 'full' is not compatible with bitmaps"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "top", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "bitmap-mode must be specified if a bitmap is provided"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'full' not supported with bitmap."}}
|
|
|
|
-- Sync mode none tests --
|
|
|
|
@@ -2821,26 +2821,26 @@ qemu_img compare "TEST_DIR/PID-img" "TEST_DIR/PID-fmirror3" ==> Identical, OK!
|
|
{"error": {"class": "GenericError", "desc": "Cannot specify bitmap sync mode without a bitmap"}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "on-success", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "none", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'none' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "none", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'none' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "none", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "Dirty bitmap 'bitmap404' not found"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'none' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap404", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "none", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "bitmap-mode must be specified if a bitmap is provided"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'none' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "on-success", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "none", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "sync mode 'none' is not compatible with bitmaps"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'none' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "always", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "none", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "sync mode 'none' is not compatible with bitmaps"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'none' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "bitmap-mode": "never", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "none", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "sync mode 'none' is not compatible with bitmaps"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'none' not supported with bitmap."}}
|
|
|
|
{"execute": "blockdev-mirror", "arguments": {"bitmap": "bitmap0", "device": "drive0", "filter-node-name": "mirror-top", "job-id": "api_job", "sync": "none", "target": "mirror_target"}}
|
|
-{"error": {"class": "GenericError", "desc": "bitmap-mode must be specified if a bitmap is provided"}}
|
|
+{"error": {"class": "GenericError", "desc": "Sync mode 'none' not supported with bitmap."}}
|
|
|