[libvirt] [RFC] Introduce virDomainBlockCopy API

Eric Blake eblake at redhat.com
Tue Jun 21 13:36:23 UTC 2011


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 at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110621/37988752/attachment-0001.sig>


More information about the libvir-list mailing list