]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: qemu: Add support for external inactive snapshots
authorPeter Krempa <pkrempa@redhat.com>
Mon, 15 Oct 2012 15:35:24 +0000 (17:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 8 Nov 2012 10:27:34 +0000 (11:27 +0100)
commit9b5a514b31f0a092cff5402e37d06d1c31f1b992
tree36e563ab2dabb55db6811bbfca8517139c9010f8
parentd49adae2e261d2736b22be37ef8d4fe0460df0ad
snapshot: qemu: Add support for external inactive snapshots

This patch adds support for external disk snapshots of inactive domains.
The snapshot is created by calling using qemu-img by calling:

 qemu-img create -f format_of_snapshot -o
 backing_file=/path/to/src,backing_fmt=format_of_backing_image
 /path/to/snapshot

in case the backing image format is known or probing is allowed and
otherwise:

 qemu-img create -f format_of_snapshot -o  backing_file=/path/to/src
 /path/to/snapshot

on each of the disks selected for snapshotting. This patch also modifies
the snapshot preparing function to support creating external snapshots
and to sanitize arguments. For now the user isn't able to mix external
and internal snapshots but this restriction might be lifted in the
future.
src/qemu/qemu_driver.c