Re: [PATCH v5 1/3] qom: Introduce object_property_try_add_child()

2020-07-01 Thread Auger Eric
Hi Greg, On 6/30/20 3:41 PM, Greg Kurz wrote: > On Mon, 29 Jun 2020 21:34:22 +0200 > Eric Auger wrote: > >> object_property_add() does not allow object_property_try_add() >> to gracefully fail as _abort is passed as an error handle. >> >> However such failure can easily be triggered from the

Re: [PATCH v5 1/3] qom: Introduce object_property_try_add_child()

2020-06-30 Thread Greg Kurz
On Mon, 29 Jun 2020 21:34:22 +0200 Eric Auger wrote: > object_property_add() does not allow object_property_try_add() > to gracefully fail as _abort is passed as an error handle. > > However such failure can easily be triggered from the QMP shell when, > for instance, one attempts to create an

[PATCH v5 1/3] qom: Introduce object_property_try_add_child()

2020-06-29 Thread Eric Auger
object_property_add() does not allow object_property_try_add() to gracefully fail as _abort is passed as an error handle. However such failure can easily be triggered from the QMP shell when, for instance, one attempts to create an object with an id that already exists. This is achieved from the