From: Peter Krempa Date: Fri, 7 Jul 2017 13:26:22 +0000 (+0200) Subject: util: storage: Fill in default ports for gluster and iscsi X-Git-Tag: v3.6.0-rc1~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bda835466a8050625dd8bb10566ea491912dbc6;p=thirdparty%2Flibvirt.git util: storage: Fill in default ports for gluster and iscsi Our documentation provides them, so the helper should return them. --- diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index 1e94f3ab46..2d310afd99 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -3990,11 +3990,15 @@ virStorageSourceNetworkDefaultPort(virStorageNetProtocol protocol) return "22"; case VIR_STORAGE_NET_PROTOCOL_ISCSI: + return "3260"; + case VIR_STORAGE_NET_PROTOCOL_GLUSTER: - /* no default port specified */ - return "0"; + return "24007"; case VIR_STORAGE_NET_PROTOCOL_RBD: + /* we don't provide a default for RBD */ + return NULL; + case VIR_STORAGE_NET_PROTOCOL_LAST: case VIR_STORAGE_NET_PROTOCOL_NONE: return NULL;