On 06/21/2011 07:14 AM, Stefan Hajnoczi wrote:
> This new virDomainBlockCopy API is different. It can be used when
you have a
> disk image (no matter what kind) stored somewhere and you need to copy it
> somewhere else. It takes two different and independent images, one currently
> assigned to a virtual block device and a new unassigned one, copies all data
> from the old one to the new one and reconfigures the block device to use the
> new image. Neither of the image formats has to be even capable of backing
> images.
Right.
This sounds related to my thread on snapshot capabilities, where if the
disk is not in a format where qemu can do a live snapshot, then libvirt
needs a command to pause guest I/O, libvirt snapshots the disk, then
libvirt informs qemu that the block device has a new image.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org