]> git.proxmox.com Git - mirror_qemu.git/commit - block/gluster.c
gluster: Fix blockdev-add with server.N.type=unix
authorKevin Wolf <kwolf@redhat.com>
Tue, 3 Apr 2018 11:08:10 +0000 (13:08 +0200)
committerJeff Cody <jcody@redhat.com>
Tue, 3 Apr 2018 13:57:14 +0000 (09:57 -0400)
commit9dae635afa98f83688806861cefe77ff1b4d76a8
tree85a814da7c3058268006cdaa868d3e1984e5fa8e
parent604343ced7288cd2087ba1a9ee855c100775ba65
gluster: Fix blockdev-add with server.N.type=unix

The legacy command line interface gets the socket path from an option
called 'socket'. QAPI in contract uses SocketAddress, where the
corresponding option is called 'path'.

Fix the gluster block driver to accept both 'socket' and 'path', with
'path' being the preferred syntax.

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

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 20180403110810.25624-1-kwolf@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/gluster.c