qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 11/20] qapi: backup: add x-max-chunk and x-max-workers par


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PATCH v2 11/20] qapi: backup: add x-max-chunk and x-max-workers parameters
Date: Tue, 2 Jun 2020 11:19:23 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1

01.06.2020 21:11, Vladimir Sementsov-Ogievskiy wrote:
Add new parameters to configure future backup features. The patch
doesn't introduce aio backup requests (so we actually have only one
worker) neither requests larger than one cluster. Still, formally we
satisfy these maximums anyway, so add the parameters now, to facilitate
further patch which will really change backup job behavior.

Options are added with x- prefixes, as the only use for them are some
very conservative iotests which will be updated soon.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
  qapi/block-core.json      |  9 ++++++++-
  include/block/block_int.h |  7 +++++++
  block/backup.c            | 21 +++++++++++++++++++++
  block/replication.c       |  2 +-
  blockdev.c                |  5 +++++
  5 files changed, 42 insertions(+), 2 deletions(-)


[..]

--- a/block/replication.c
+++ b/block/replication.c
@@ -563,7 +563,7 @@ static void replication_start(ReplicationState *rs, 
ReplicationMode mode,
          s->backup_job = backup_job_create(
                                  NULL, s->secondary_disk->bs, 
s->hidden_disk->bs,
                                  0, MIRROR_SYNC_MODE_NONE, NULL, 0, false, 
NULL,
-                                true,
+                                true, 0, 0,

must be true, 1, 0, to setup 1 worker.

                                  BLOCKDEV_ON_ERROR_REPORT,
                                  BLOCKDEV_ON_ERROR_REPORT, JOB_INTERNAL,
                                  backup_job_completed, bs, NULL, &local_err);
diff --git a/blockdev.c b/blockdev.c
index 28145afe7d..cf068d20fa 100644


--
Best regards,
Vladimir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]