]> git.ipfire.org Git - thirdparty/qemu.git/commit
gluster: Fix blockdev-add with server.N.type=unix
authorKevin Wolf <kwolf@redhat.com>
Tue, 3 Apr 2018 10:58:32 +0000 (12:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 3 Apr 2018 13:20:36 +0000 (15:20 +0200)
commit3e4d88eabfd6ccceb49885cc026c2778b6d5b7d2
tree85bb8a22ddce107b9f63d7727817e9d8a124db4a
parentf184de7553272223d6af731d7d623a7cebf710b5
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>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/gluster.c