Re: [libvirt] [PATCHv3 3/3] Return -1 in virPortAllocatorAcquire if all ports are used

2013-11-14 Thread Martin Kletzander
On Wed, Nov 13, 2013 at 06:01:42PM +0100, Ján Tomko wrote: Report the error in virPortAllocatorAcquire instead of doing it in every caller. The error contains the port range name instead of the intended use for the port, e.g.: Unable to find an unused port in range 'display' (65534-65535)

[libvirt] [PATCHv3 3/3] Return -1 in virPortAllocatorAcquire if all ports are used

2013-11-13 Thread Ján Tomko
Report the error in virPortAllocatorAcquire instead of doing it in every caller. The error contains the port range name instead of the intended use for the port, e.g.: Unable to find an unused port in range 'display' (65534-65535) instead of: Unable to find an unused port for SPICE This also