]> xenbits.xensource.com Git - libvirt.git/commit
qemu: support URI syntax for NBD
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Feb 2013 17:44:25 +0000 (18:44 +0100)
committerEric Blake <eblake@redhat.com>
Fri, 15 Mar 2013 21:47:50 +0000 (15:47 -0600)
commiteebbb232e65e555b7d358ca752c23d2bacaf4edf
treec5a369468873915d1b71b3f12850874ae11af26e
parentbe2a15dd60fc116f4c7bf2f8ca8e1974ff743d4d
qemu: support URI syntax for NBD

QEMU 1.3 and newer support an alternative URI-based syntax to specify
the location of an NBD server.  Libvirt can keep on using the old
syntax in general, but only the URI syntax supports IPv6 addresses.

The URI syntax also supports relative paths to Unix sockets.  These
should never be used but aren't explicitly blocked either by the parser,
so support it just in case.

The URI syntax is intentionally compatible with Gluster's, and the
code can be reused.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_command.c
tests/qemuargv2xmltest.c
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-nbd-ipv6-export.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-nbd-ipv6-export.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-nbd-ipv6.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-nbd-ipv6.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c