From: Prasanna Kumar Kalever Date: Tue, 9 Aug 2016 09:48:14 +0000 (+0530) Subject: block/gluster: fix port type in the QAPI options list X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=53d9837fb8906b8512143d5eaacc4d6a65b29cc6;p=qemu.git 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 Signed-off-by: Prasanna Kumar Kalever Reviewed-by: Jeff Cody Signed-off-by: Jeff Cody --- diff --git a/block/gluster.c b/block/gluster.c index 98a91323b6..0ce15f7adc 100644 --- a/block/gluster.c +++ b/block/gluster.c @@ -186,7 +186,7 @@ static QemuOptsList runtime_tcp_opts = { }, { .name = GLUSTER_OPT_PORT, - .type = QEMU_OPT_NUMBER, + .type = QEMU_OPT_STRING, .help = "port number on which glusterd is listening (default 24007)", }, {