]> git.ipfire.org Git - thirdparty/libvirt.git/commit
blockjob: implement shallow commit flag in qemu
authorEric Blake <eblake@redhat.com>
Sat, 13 Oct 2012 13:12:31 +0000 (07:12 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 19 Oct 2012 23:35:11 +0000 (17:35 -0600)
commit0a220e22251fbb047791f50fd2d15b49f274fc07
tree563d9abdc89712ef1cd119bf956782f803b3a41a
parent2cbc1fd8922c8a42c8244d1b96b834a549dbbc7f
blockjob: implement shallow commit flag in qemu

Now that we can crawl the chain of backing files, we can do
argument validation and implement the 'shallow' flag.  In
testing this, I discovered that it can be handy to pass the
shallow flag and an explicit base, as a means of validating
that the base is indeed the file we expected.

* src/qemu/qemu_driver.c (qemuDomainBlockCommit): Crawl through
chain to implement shallow flag.
* src/libvirt.c (virDomainBlockCommit): Relax API.
src/libvirt.c
src/qemu/qemu_driver.c