• E
    snapshot: wire up live qemu disk snapshots · 9c21b441
    Eric Blake 提交于
    Lots of earlier patches led up to this point - the qemu snapshot_blkdev
    monitor command can now be controlled by libvirt!  Well, insofar as
    SELinux doesn't prevent qemu from open(O_CREAT) on the files.  There's
    still some followup work before things work with SELinux enforcing,
    but this patch is big enough to post now.
    
    There's still room for other improvements, too (for example, taking a
    disk snapshot of an inactive domain, by using qemu-img for both internal
    and external snapshots; wiring up delete and revert control, including
    additional flags from my RFC; supporting active QED disk snapshots;
    supporting per-storage-volume snapshots such as LVM or btrfs snapshots;
    etc.).  But this patch is the one that proves the new XML works!
    
    * src/qemu/qemu_driver.c (qemuDomainSnapshotCreateXML): Wire in
    active disk snapshots.
    (qemuDomainSnapshotDiskPrepare)
    (qemuDomainSnapshotCreateDiskActive)
    (qemuDomainSnapshotCreateSingleDiskActive): New functions.
    9c21b441
qemu_driver.c 324.8 KB