]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
snapshot: implement new APIs for esx and vbox
authorEric Blake <eblake@redhat.com>
Fri, 25 May 2012 02:28:54 +0000 (20:28 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 20 Jun 2012 17:18:48 +0000 (11:18 -0600)
commitd4edc089f582dc060762242d08c48f9bddb1ba9d
tree5bff71c262c2579f7f0d719b6fce0d7b3cf35929
parente3fe4102c1210a21afc32769f2adb7c53e9a208a
snapshot: implement new APIs for esx and vbox

The two new APIs are rather trivial; based on bits and pieces of
other existing APIs.  But rather than blindly return 0 or 1 for
HasMetadata, I chose to first validate that the snapshot in
question in fact exists.

* src/esx/esx_driver.c (esxDomainSnapshotIsCurrent)
(esxDomainSnapshotHasMetadata): New functions.
* src/vbox/vbox_tmpl.c (vboxDomainSnapshotIsCurrent)
(vboxDomainSnapshotHasMetadata): Likewise.
src/esx/esx_driver.c
src/vbox/vbox_tmpl.c