[Libvir] [PATCH] virDomainMigrate version 4 (for discussion only!)
Richard W.M. Jones
rjones at redhat.com
Tue Jul 24 12:25:31 UTC 2007
Daniel P. Berrange wrote:
> On Fri, Jul 20, 2007 at 10:58:24AM -0400, Daniel Veillard wrote:
>> Hum, we say it's an uri, but we interpret is differently if it's not absolute
>> this could lead to confusion. But I'm not sure being a purist here would help
>> that much from an user POV.
>
> I agree - the fact that the 'uri' to virConnectOpen doesn't technically have to
> always be a URI (eg, NULL, or Xen, or xen) is a major cause of pain virt-manager
> since we have to special case parsing of it, rather than just handing off to a
> generic URI parser module. We should mandate wellformed URIs for the migrate
> API, where wellformed is defined to be whatever libxml is able to parse :-)
I'd be a bit happier if libxml2 could parse a bare string like
"hostname" and "hostname:1234" more like my browser does. At the moment
this is what it does:
hostname ---> scheme=(null) server=(null) port=0 path=hostname
query_raw=(null)
hostname:1234 ---> scheme=hostname server=(null) port=0 path=(null)
query_raw=(null)
(Original program attached).
I'm sure there's some smartypants standards reason for it, but it's
counterintuitive to me.
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmltest.c
Type: text/x-csrc
Size: 417 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070724/9a557c64/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070724/9a557c64/attachment-0003.bin>
More information about the libvir-list
mailing list