• J
    qemu: escape ipv6 for rbd network disk hosts · c1509ab4
    Josh Durgin 提交于
    Hosts for rbd are ceph monitor daemons. These have fixed IP addresses,
    so they are often referenced by IP rather than hostname for
    convenience, or to avoid relying on DNS. Using IPv4 addresses as the
    host name works already, but IPv6 addresses require rbd-specific
    escaping because the colon is used as an option separator in the
    string passed to qemu.
    
    Escape these colons, and enclose the IPv6 address in square brackets
    so it is distinguished from the port, which is currently mandatory.
    Acked-by: NOsier Yang <jyang@redhat.com>
    Signed-off-by: NJosh Durgin <josh.durgin@inktank.com>
    c1509ab4
qemu_command.c 321.5 KB