]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: simplify esx snapshot name lookup
authorEric Blake <eblake@redhat.com>
Mon, 3 Oct 2011 18:02:25 +0000 (12:02 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 5 Oct 2011 14:24:34 +0000 (08:24 -0600)
commitf045583372ea2ca983f824a9d7c03f6df8da4539
treecd25d31274cfc496098b0be238a16ef103d41558
parent827a992a13899b6fa4afb031ae696ad9c66910f2
snapshot: simplify esx snapshot name lookup

No need to request the parent of a snapshot if we aren't going to use it.

* src/esx/esx_vi.c (esxVI_GetSnapshotTreeByName): Make parent
optional.
* src/esx/esx_driver.c (esxDomainSnapshotCreateXML)
(esxDomainSnapshotLookupByName, esxDomainRevertToSnapshot)
(esxDomainSnapshotDelete): Simplify accordingly.
src/esx/esx_driver.c
src/esx/esx_vi.c