Re: [Qemu-devel] [Questions] Several questions about incremental backup

2016-01-25 Thread Rudy Zhang
On 16/1/26 上午3:19, John Snow wrote: > > > On 01/25/2016 02:35 AM, Rudy Zhang wrote: >> I am reading and testing the function: incremental backup in qemu-2.5. >> But I have serveral questions about it. >> 1. If I want to start image backup, at first I nee

[Qemu-devel] [Questions] Several questions about incremental backup

2016-01-24 Thread Rudy Zhang
I am reading and testing the function: incremental backup in qemu-2.5. But I have serveral questions about it. 1. If I want to start image backup, at first I need to start full mode backup and then, add a bitmap to trace io, next start incremental backup via the bitmap before we added. But

[Qemu-devel] [PATCH 2/2] hmp: add hmp commands dirty bitmap add/clear/remove'

2016-01-21 Thread Rudy Zhang
device bitmap -- Clear dirty bitmap for 'device' block_dirty_bitmap_remove device bitmap -- Remove dirty bitmap for 'device' Signed-off-by: Rudy Zhang <rudyflyzh...@gmail.com> --- hmp-commands.hx | 42 +++ hmp.c

[Qemu-devel] [PATCH 1/2] hmp: add hmp command for incremental backup

2016-01-21 Thread Rudy Zhang
Add hmp command for incremental backup in drive-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] Signed-off-by: Rudy Zhang <rudyfl

[Qemu-devel] [PATCH 0/2] block/hmp: add sereval hmp commands for incremental backup

2016-01-21 Thread Rudy Zhang
/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