Add sereval hmp commands for incremental backup.
It need a bitmap to backup data from drive-image to incremental image,
so before it need add bitmap for this device to track io.

Usage:
   drive_backup [-n] [-f] device target [bitmap] [format]

Example:
   # qemu-img create -f qcow2 /path/incremental-1.qcow2 -b /path/full.qcow2
   (qemu) block_dirty_bitmap_add drive-virtio-disk0 bitmap0
   (qemu) drive-backup -n drive-virtio-disk0 /path/incremental-1.qcow2 bitmap0

Rudy Zhang (2):
  hmp: add hmp command for incremental backup
  hmp: add hmp commands dirty bitmap add/clear/remove'

 hmp-commands.hx | 47 ++++++++++++++++++++++++++++++--
 hmp.c           | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 hmp.h           |  3 +++
 3 files changed, 129 insertions(+), 4 deletions(-)

-- 
2.6.4


Reply via email to