These patches add the sync mode argument to drive-backup (just like drive-mirror) and then introduce the drive_backup HMP command.
It's necessary to add the sync mode argument although only the 'full' is supported, since the drive_mirror HMP command defaults to sync mode 'top'. To avoid confusion, we implement the same behavior as drive_mirror and use the sync mode argument which Ian Main <im...@redhat.com> is currently working on implementing. Stefan Hajnoczi (2): blockdev: add sync mode to drive-backup QMP command block: add drive_backup HMP command blockdev.c | 6 ++++++ hmp-commands.hx | 20 ++++++++++++++++++++ hmp.c | 28 ++++++++++++++++++++++++++++ hmp.h | 1 + qapi-schema.json | 14 ++++++++++++-- qmp-commands.hx | 6 +++++- tests/qemu-iotests/055 | 36 +++++++++++++++++++++--------------- 7 files changed, 93 insertions(+), 18 deletions(-) -- 1.8.1.4