OSDN Git Service

gluster: Drop assumptions on SocketTransport names
authorMarkus Armbruster <armbru@redhat.com>
Mon, 6 Mar 2017 19:00:44 +0000 (20:00 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 7 Mar 2017 13:53:28 +0000 (14:53 +0100)
commitfc29458dee2b4206eba90ed210342105e1556fd0
tree892c4fe84dd513a886086689aef6f9ce3beebecf
parent831acdc95e9c0faaf0bd0ced50f168afd7ad92ac
gluster: Drop assumptions on SocketTransport names

qemu_gluster_glfs_init() passes the names of QAPI enumeration type
SocketTransport to glfs_set_volfile_server().  Works, because they
were chosen to match.  But the coupling is artificial.  Use the
appropriate literal strings instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/gluster.c