]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Fix formatting and parsing of qemu type 'UnixSocketAddress'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 12 Feb 2018 14:44:11 +0000 (15:44 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 14 Feb 2018 14:58:04 +0000 (15:58 +0100)
commita3a3de9bc74aea9f56790210948cdb7cf579d84c
treebc4e392a40bba497d791b5c7af872b47539e8c43
parentbc84bb9fe001fc3ca5436b9b50fbd669e4c489b6
storage: Fix formatting and parsing of qemu type 'UnixSocketAddress'

The documentation for the JSON/qapi type 'UnixSocketAddress' states that
the unix socket path field is named 'path'. Unfortunately qemu uses
'socket' in case of the gluster driver (despite documented otherwise).

Add logic which will format the correct fields while keeping support of
the old spelling.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1544325

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_block.c
src/util/virstoragefile.c