Re: [libvirt] [PATCH 08/20] openvz: Use virDomainObjListFindBy{UUID|ID}Ref

2018-03-30 Thread John Ferlan
On 03/29/2018 01:52 PM, Jim Fehlig wrote: > On 03/09/2018 09:48 AM, John Ferlan wrote: >> For openvzDomObjFromDomainLocked and openvzDomainLookupByID >> let's return a locked and referenced @vm object so that callers >> can then use the common and more consistent virDomainObjEndAPI >> in order

Re: [libvirt] [PATCH 08/20] openvz: Use virDomainObjListFindBy{UUID|ID}Ref

2018-03-29 Thread Jim Fehlig
On 03/09/2018 09:48 AM, John Ferlan wrote: For openvzDomObjFromDomainLocked and openvzDomainLookupByID let's return a locked and referenced @vm object so that callers can then use the common and more consistent virDomainObjEndAPI in order to handle cleanup rather than needing to know that the

[libvirt] [PATCH 08/20] openvz: Use virDomainObjListFindBy{UUID|ID}Ref

2018-03-09 Thread John Ferlan
For openvzDomObjFromDomainLocked and openvzDomainLookupByID let's return a locked and referenced @vm object so that callers can then use the common and more consistent virDomainObjEndAPI in order to handle cleanup rather than needing to know that the returned object is locked and calling