libvirt/src/storage
Yi Li cdd362e0e7 storage: escape ipv6 for ceph mon hosts to librados
Hosts for rbd are ceph monitor daemons. These have fixed IP addresses,
so they are often referenced by IP rather than hostname for
convenience, or to avoid relying on DNS. Using IPv4 addresses as the
host name works already, but IPv6 addresses require rbd-specific
escaping because the colon is used as an option separator in the
string passed to librados.

Escape these colons, and enclose the IPv6 address in square brackets
so it is distinguished from the port, which is currently mandatory.

Signed-off-by: Yi Li <yili@winhong.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
2019-06-18 17:14:17 +02:00
..
Makefile.inc.am src: don't statically link code that's already in libvirt.so 2019-05-17 14:34:45 +01:00
parthelper.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
storage_backend_disk.c Fix names for abs_top_{src,build}dir variables 2019-03-14 10:05:28 +01:00
storage_backend_disk.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_fs.c lib: Don't use virReportSystemError() if virCommandRun() fails 2019-04-12 15:56:28 +02:00
storage_backend_fs.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_gluster.c storagePoolRefreshFailCleanup: Clear volumes on failed refresh 2019-03-16 07:50:51 +01:00
storage_backend_gluster.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_iscsi_direct.c storage_backend_iscsi_direct: Simplify vol zeroing 2019-03-18 13:20:36 +01:00
storage_backend_iscsi_direct.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_iscsi.c storage: Use VIR_AUTOFREE for storage backends 2019-02-12 13:11:20 -05:00
storage_backend_iscsi.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_logical.c storagePoolRefreshFailCleanup: Clear volumes on failed refresh 2019-03-16 07:50:51 +01:00
storage_backend_logical.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_mpath.c storage: Use VIR_AUTOFREE for storage backends 2019-02-12 13:11:20 -05:00
storage_backend_mpath.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_rbd.c storage: escape ipv6 for ceph mon hosts to librados 2019-06-18 17:14:17 +02:00
storage_backend_rbd.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_scsi.c storage: Use VIR_AUTOCLOSE 2019-02-12 13:11:31 -05:00
storage_backend_scsi.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_sheepdog_priv.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_sheepdog.c util: string: Use VIR_AUTOSTRINGLIST instead of VIR_AUTOPTR(virString) 2019-03-04 13:04:20 +01:00
storage_backend_sheepdog.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_vstorage.c vz: build fix for virStorageBackendVzPoolStart 2019-02-19 12:52:21 +03:00
storage_backend_vstorage.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend_zfs.c util: string: Use VIR_AUTOSTRINGLIST instead of VIR_AUTOPTR(virString) 2019-03-04 13:04:20 +01:00
storage_backend_zfs.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_backend.c Fix names for abs_top_{src,build}dir variables 2019-03-14 10:05:28 +01:00
storage_backend.h storage: Process storage pool capabilities 2019-03-06 11:12:48 -05:00
storage_driver.c storageVolWipePattern: Don't take shortcut to refreshPool() 2019-03-18 13:20:36 +01:00
storage_driver.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_file_fs.c Revert "Include unistd.h directly by files using it" 2019-04-10 12:26:32 +02:00
storage_file_fs.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_file_gluster.c storage: Use VIR_AUTOFREE for storage backends 2019-02-12 13:11:20 -05:00
storage_file_gluster.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
storage_util.c storagePoolRefreshFailCleanup: Clear volumes on failed refresh 2019-03-16 07:50:51 +01:00
storage_util.h storage: Add infrastructure to manage XML namespace options 2019-01-29 19:16:13 -05:00