[libvirt] [PATCH v3] Add macro for handling exponential backoff loops.

Richard W.M. Jones rjones at redhat.com
Thu Apr 14 16:55:35 UTC 2016


On Sat, Apr 09, 2016 at 08:39:57PM +0100, Richard W.M. Jones wrote:
> v2 was here:
> https://www.redhat.com/archives/libvir-list/2016-April/thread.html#00355
> 
> v2->v3:
> 
>  - Rename virTimeBackOffInit -> Start.
> 
>  - virTimeBackOffStart now returns an error indication.
> 
>  - Remove var->first and var->timeout fields from struct.
> 
>  - Change var->limit field name to limit_t.
> 
>  - Remove '- 2' fudge factor.
> 
>  - virTimeBackOffCondition returns bool instead of int.
> 
> I didn't remove the macro hiding the 'while' keyword because I prefer
> the current user interface.
> 
> I retested this against current libguestfs.

Any objections or other comments on this patch?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the libvir-list mailing list