]> git.proxmox.com Git - mirror_qemu.git/commit - block/gluster.c
block/gluster: fix port type in the QAPI options list
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Tue, 9 Aug 2016 09:48:14 +0000 (15:18 +0530)
committerJeff Cody <jcody@redhat.com>
Tue, 1 Nov 2016 11:55:57 +0000 (07:55 -0400)
commit53d9837fb8906b8512143d5eaacc4d6a65b29cc6
tree161540bc55c3a2d1809acbc34528dfad9beb9358
parentc56ac33b7a7bee960dd43f7744aaca47886c3960
block/gluster: fix port type in the QAPI options list

After introduction of qapi schema in gluster block driver code, the port
type is now string as per InetSocketAddress

{ 'struct': 'InetSocketAddress',
  'data': {
    'host': 'str',
    'port': 'str',
    '*to': 'uint16',
    '*ipv4': 'bool',
    '*ipv6': 'bool' } }

but the current code still treats it as QEMU_OPT_NUMBER, hence fixing port
to accept QEMU_OPT_STRING.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/gluster.c