提交 5bda8354 编写于 作者: P Peter Krempa

util: storage: Fill in default ports for gluster and iscsi

Our documentation provides them, so the helper should return them.
上级 34ffc2ff
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册