]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: storage: Fill in default ports for gluster and iscsi
authorPeter Krempa <pkrempa@redhat.com>
Fri, 7 Jul 2017 13:26:22 +0000 (15:26 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 14 Jul 2017 14:05:46 +0000 (16:05 +0200)
Our documentation provides them, so the helper should return them.

src/util/virstoragefile.c

index 1e94f3ab4637d60baec87198f166f20c7d6b210c..2d310afd99abc45fe1f58a849fe3dd0a09e916bc 100644 (file)
@@ -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;