]> git.ipfire.org Git - thirdparty/libvirt.git/commit
blockcommit: turn on active commit
authorEric Blake <eblake@redhat.com>
Wed, 18 Jun 2014 23:16:27 +0000 (17:16 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 30 Jul 2014 12:32:39 +0000 (06:32 -0600)
commitcfb16b8ed7bf5a082566e36b658945028cdffc59
treefd704d0b14a7513d7260d9354a003d408347a2d3
parent232a31bea3bfde7118bbb0c6594949b62b9bd2a0
blockcommit: turn on active commit

With this in place, I can (finally!) now do:

virsh blockcommit $dom vda --shallow --verbose --pivot

and watch qemu shorten the backing chain by one, followed by
libvirt automatically updating the dumpxml output, effectively
undoing the work of virsh snapshot-commit --no-metadata --disk-only.
Commit is SOOOO much faster than blockpull, when I'm still fairly
close in time to when the temporary qcow2 wrapper file was created
via a snapshot operation!

* src/qemu/qemu_driver.c (qemuDomainBlockCommit): Implement live
commit.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_driver.c