[libvirt] [PATCH v2 0/3]usb devices with same vendorID, productID hotplug support

Eric Blake eblake at redhat.com
Wed May 2 16:35:09 UTC 2012


On 05/02/2012 10:26 AM, Osier Yang wrote:

> The error could be more clear, e.g.
> 
> multiple USB deivces for vendor='15e1',
> product='2007', use <address> to specify one.
> 
> And it's not "XML error", the XML is just fine. The XML with
> only 'vendor' and 'product' specified could still work well
> if no mulitple devices with the same vendor and product.
> 
> Perhaps VIR_ERR_INTERNAL_ERROR is a good choice.

No, because it's not an internal libvirt problem, but an ambiguous user
input problem.  I'd recommend VIR_ERR_INVALID_ARG (invalid because it
was ambiguous) or VIR_ERR_OPERATION_FAILED (failed because we didn't
have enough information).

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120502/d6331ba8/attachment-0001.sig>


More information about the libvir-list mailing list