Re: [Xen-devel] libxl__device_nextid and holes

2015-03-09 Thread Wei Liu
On Mon, Mar 09, 2015 at 08:58:38AM +0100, Olaf Hering wrote: > I wonder if libxl__device_nextid is robust enough to handle holes. If > there are 3 devices (0,1,2) of type X, and device #0 or #1 is removed > with "X-detach", wouldn't the code return nextid==2? The result would be > that the caller w

[Xen-devel] libxl__device_nextid and holes

2015-03-09 Thread Olaf Hering
I wonder if libxl__device_nextid is robust enough to handle holes. If there are 3 devices (0,1,2) of type X, and device #0 or #1 is removed with "X-detach", wouldn't the code return nextid==2? The result would be that the caller will write to the wrong path. I have not veified this theory in pract