diff options
author | John Snow <jsnow@redhat.com> | 2015-04-17 19:49:58 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-04-28 15:36:10 +0200 |
commit | d58d84539784d27c826924a79d9436178b07ff69 (patch) | |
tree | dfc10d7edcb62f28355eab4d7b6ab3eb9bc0bca6 /hmp.c | |
parent | 9bd2b08f27b9c27bb40d73b6466321b8c635086e (diff) | |
download | qemu-d58d84539784d27c826924a79d9436178b07ff69.zip qemu-d58d84539784d27c826924a79d9436178b07ff69.tar.gz qemu-d58d84539784d27c826924a79d9436178b07ff69.tar.bz2 |
qmp: Add support of "dirty-bitmap" sync mode for drive-backup
For "dirty-bitmap" sync mode, the block job will iterate through the
given dirty bitmap to decide if a sector needs backup (backup all the
dirty clusters and skip clean ones), just as allocation conditions of
"top" sync mode.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1429314609-29776-11-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r-- | hmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1061,7 +1061,8 @@ void hmp_drive_backup(Monitor *mon, const QDict *qdict) qmp_drive_backup(device, filename, !!format, format, full ? MIRROR_SYNC_MODE_FULL : MIRROR_SYNC_MODE_TOP, - true, mode, false, 0, false, 0, false, 0, &err); + true, mode, false, 0, false, NULL, + false, 0, false, 0, &err); hmp_handle_error(mon, &err); } |