ceph-csi/internal
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
..
cephfs util: add function to get the kernel version 2020-06-18 11:42:47 +00:00
csi-common cleanup: remove double import of csi spec from nodeserver 2020-06-11 10:28:24 +00:00
journal util: remove unused context.Context from GetPoolName() 2020-05-20 08:08:33 +00:00
liveness cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
rbd rbd: remove unneeded updateVolWithImageInfo() 2020-06-17 09:28:57 +00:00
util util: trim "\x00" characters from the kernel version 2020-06-18 11:42:47 +00:00