]> git.proxmox.com Git - qemu.git/commit
Copy snapshots out of QCOW2 disk
authoredison <edison@cloud.com>
Wed, 22 Sep 2010 02:58:41 +0000 (19:58 -0700)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Oct 2010 12:49:35 +0000 (14:49 +0200)
commit51ef67270b1d10e1fcf3de7368dccad1ba0bf9d1
treea06b3ce03bae7ed77a1e1e9bebc6ead157c7a4e5
parenta58b8d5401b6064d52113f243456115d046bdd12
Copy snapshots out of QCOW2 disk

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: Disheng Su <edison@cloud.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h
block/qcow2-snapshot.c
block/qcow2.c
block/qcow2.h
block_int.h
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi