2012/6/12 Eric Blake <eblake(a)redhat.com>:
The two new APIs are rather trivial; based on bits and pieces of
other existing APIs. I chose to blindly return 0 for HasMetadata,
since we already do that for other APIs like domainIsPersistent.
* src/esx/esx_driver.c (esxDomainSnapshotIsCurrent)
(esxDomainSnapshotHasMetadata): New functions.
* src/vbox/vbox_tmpl.c (vboxDomainSnapshotIsCurrent)
(vboxDomainSnapshotHasMetadata): Likewise.
---
This version avoids existence checks. I don't like it, but it is
shorter, so it's worth posting.
src/esx/esx_driver.c | 50 ++++++++++++++++++++++++++++++++++
src/vbox/vbox_tmpl.c | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 123 insertions(+)
ACK, to this one to as it is just a short version of variant 1, so you
got to choose :)
--
Matthias Bolte
http://photron.blogspot.com