ceph-csi/internal/util
Niels de Vos ebe378c79a util: trim "\x00" characters from the kernel version
It seems that convering the release component from the unix.Utsrelease
type leaves some trailing "\x00" characters.

While splitting the string to compare kernel versions, these additional
characters might prevent converting the string to an int. Strip the
additional characters before returning the string.

Note:
  "\x00" characters are not visible when printing to a file or screen.
  They can be seen in hex-editors, or sending the output through 'xxd'.

Fixes: #1167
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-06-18 11:42:47 +00:00
..
cachepersister.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
cephcmds.go util: implement CreateObject() with go-ceph 2020-06-10 07:20:25 +00:00
cephconf.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
conn_pool_test.go move rbdVolume connection details to utils.ClusterConnection 2020-05-04 13:21:03 +00:00
conn_pool.go move rbdVolume connection details to utils.ClusterConnection 2020-05-04 13:21:03 +00:00
connection.go rbd: add rbdVolume.open() to get access to an image 2020-05-14 18:20:15 +00:00
credentials.go cleanup: fix golint warnings in util, e2e 2020-05-20 13:18:41 +00:00
crypto.go rbd/go-ceph: add GetMetadata() and GetMetadata() functions 2020-05-04 13:21:03 +00:00
cryptsetup.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
csiconfig_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
csiconfig.go util: make util.ClusterInfo usable outside util package 2020-05-14 19:43:21 +00:00
errors.go cleanup: fix golint warnings in util, e2e 2020-05-20 13:18:41 +00:00
httpserver.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
idlocker_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
idlocker.go cleanup: fix golint warnings in util, e2e 2020-05-20 13:18:41 +00:00
k8scmcache.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
log.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
nodecache.go cleanup: avoid comparing errors directly 2020-06-17 06:26:11 +00:00
pidlimit_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
pidlimit.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
stripsecrets.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
topology_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
topology.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
util_test.go util: trim "\x00" characters from the kernel version 2020-06-18 11:42:47 +00:00
util.go util: trim "\x00" characters from the kernel version 2020-06-18 11:42:47 +00:00
validate.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
vault.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
volid_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
volid.go util: fix golint warnings in csiconfig, volid 2020-04-29 11:36:53 +00:00