[libvirt] [PATCH 1/2] snapshot: implement getparent for esx

Matthias Bolte matthias.bolte at googlemail.com
Sun Oct 2 09:32:36 UTC 2011


2011/9/29 Eric Blake <eblake at redhat.com>:
> Pretty easy to paste together compared to existing functions.
>
> * src/esx/esx_driver.c (esxDomainSnapshotGetParent): New function.
> ---
>
> I can only compile-test this; I'm relying on someone with an actual
> esx setup to actually test it.  Also, I didn't see anything in
> existing code that would efficiently implement
> virDomainSnapshotNumChildren; there may an API that I'm not aware of,
> but someone else will have to implement that API (Matthias?)

This will have to be done by esxVI_GetNumberOfSnapshotTrees that just
counts the snapshots in the driver. This is one of things where
vSphere API doesn't translate efficiently to libvirt API.

>  src/esx/esx_driver.c |   41 +++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 41 insertions(+), 0 deletions(-)
>

Looks good, tested, works, ACK :)

-- 
Matthias Bolte
http://photron.blogspot.com




More information about the libvir-list mailing list