diff options
author | John Snow <jsnow@redhat.com> | 2019-07-29 16:35:52 -0400 |
---|---|---|
committer | John Snow <jsnow@redhat.com> | 2019-08-16 16:28:02 -0400 |
commit | c8b56501780615f709d96419fd718ca562d41c46 (patch) | |
tree | 8b52259a49f81a7405f8f94f511892416ad7c14f /block/replication.c | |
parent | 00a463b1dc73d1665ce6720df4de052aff95acf8 (diff) | |
download | qemu-c8b56501780615f709d96419fd718ca562d41c46.zip qemu-c8b56501780615f709d96419fd718ca562d41c46.tar.gz qemu-c8b56501780615f709d96419fd718ca562d41c46.tar.bz2 |
block/backup: Add mirror sync mode 'bitmap'
We don't need or want a new sync mode for simple differences in
semantics. Create a new mode simply named "BITMAP" that is designed to
make use of the new Bitmap Sync Mode field.
Because the only bitmap sync mode is 'on-success', this adds no new
functionality to the backup job (yet). The old incremental backup mode
is maintained as a syntactic sugar for sync=bitmap, mode=on-success.
Add all of the plumbing necessary to support this new instruction.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190709232550.10724-6-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'block/replication.c')
-rw-r--r-- | block/replication.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/replication.c b/block/replication.c index 23b2993..936b2f8 100644 --- a/block/replication.c +++ b/block/replication.c @@ -543,7 +543,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, false, + 0, MIRROR_SYNC_MODE_NONE, NULL, 0, false, BLOCKDEV_ON_ERROR_REPORT, BLOCKDEV_ON_ERROR_REPORT, JOB_INTERNAL, backup_job_completed, bs, NULL, &local_err); |