Re: [libvirt] [PATCH 1/7] util: Alter virObjectLockRead to return status

2017-07-31 Thread John Ferlan
[...] >> --- a/src/util/virobject.c >> +++ b/src/util/virobject.c >> @@ -410,17 +410,21 @@ virObjectLock(void *anyobj) >> * The object must be unlocked before releasing this >> * reference. >> */ >> -void >> +int > > I'm NACK on this return value change. > OK - that's fine. >>

Re: [libvirt] [PATCH 1/7] util: Alter virObjectLockRead to return status

2017-07-31 Thread Daniel P. Berrange
On Fri, Jul 28, 2017 at 12:38:55PM -0400, John Ferlan wrote: > Rather than ignore errors, let's have virObjectLockRead check for > the correct usage and issue an error when not properly used so > so that we don't run into situations where the resource we think > we're locking really isn't locked

Re: [libvirt] [PATCH 1/7] util: Alter virObjectLockRead to return status

2017-07-31 Thread Michal Privoznik
On 07/28/2017 08:26 PM, John Ferlan wrote: > > > On 07/28/2017 12:56 PM, Pavel Hrdina wrote: >> On Fri, Jul 28, 2017 at 12:38:55PM -0400, John Ferlan wrote: >>> Rather than ignore errors, let's have virObjectLockRead check for >>> the correct usage and issue an error when not properly used so

Re: [libvirt] [PATCH 1/7] util: Alter virObjectLockRead to return status

2017-07-28 Thread John Ferlan
On 07/28/2017 12:56 PM, Pavel Hrdina wrote: > On Fri, Jul 28, 2017 at 12:38:55PM -0400, John Ferlan wrote: >> Rather than ignore errors, let's have virObjectLockRead check for >> the correct usage and issue an error when not properly used so >> so that we don't run into situations where the

Re: [libvirt] [PATCH 1/7] util: Alter virObjectLockRead to return status

2017-07-28 Thread Pavel Hrdina
On Fri, Jul 28, 2017 at 12:38:55PM -0400, John Ferlan wrote: > Rather than ignore errors, let's have virObjectLockRead check for > the correct usage and issue an error when not properly used so > so that we don't run into situations where the resource we think > we're locking really isn't locked

[libvirt] [PATCH 1/7] util: Alter virObjectLockRead to return status

2017-07-28 Thread John Ferlan
Rather than ignore errors, let's have virObjectLockRead check for the correct usage and issue an error when not properly used so so that we don't run into situations where the resource we think we're locking really isn't locked because the void input parameter wasn't valid. Signed-off-by: John