• E
    Copy snapshots out of QCOW2 disk · 51ef6727
    edison 提交于
    In order to backup snapshots, created from QCOW2 iamge, we want to copy snapshots out of QCOW2 disk to a seperate storage.
    The following patch adds a new option in "qemu-img": qemu-img convert -f qcow2 -O qcow2 -s snapshot_name src_img bck_img.
    Right now, it only supports to copy the full snapshot, delta snapshot is on the way.
    
    Changes from V1: all the comments from Kevin are addressed:
    Add read-only checking
    Fix coding style
    Change the name from bdrv_snapshot_load to bdrv_snapshot_load_tmp
    Signed-off-by: NDisheng Su <edison@cloud.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    51ef6727
block.c 70.9 KB