[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] DOM0_GETDOMAININFO intended behavior



 
> You're right, it isn't difficult to check what is returned - 
> provided you know what to expect. If you're new, however, to 
> the API and unfamiliar with the fact that it returns the next 
> domain in the line, you could hit what we just hit. We built 
> an application to use the interface and our tests returned 
> some odd behavior. We had to delve deeper to find out if this 
> was correct or not. 

You're not the first person to be caught out by this -- I seem to recall
that xenctx forgets to do the domid check too.

Passing a flag in to explicitly request that you want to iterate would
probably be an improvement to the interface.

Ian

> The current behavior is just not obvious. Perhaps just 
> documenting it in the code and the manual is enough so others 
> don't hit this. 
> 
> Thanks,
> 
> Dan
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.