[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCHv2 9/7] snapshot: simplify esx snapshot name lookup



2011/10/3 Eric Blake <eblake redhat com>:
> 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 |   12 ++++--------
>  src/esx/esx_vi.c     |    7 ++++---
>  2 files changed, 8 insertions(+), 11 deletions(-)

ACK.

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]