]> 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 11:08:10 +0000 (13:08 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:45:01 +0000 (20:45 -0500)
commit12fc0de2ab398d6cc379b5ff15895aa7e6a19fe6
tree0bad31ac8566d21e955c9ade5f56497d1060fe42
parentbb8d4bb3ccc419cface945dc5300ccddbe01f651
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>
(cherry picked from commit 9dae635afa98f83688806861cefe77ff1b4d76a8)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/gluster.c