1
0
mirror of https://github.com/ceph/ceph-csi.git synced 2024-12-19 03:20:20 +00:00
ceph-csi/internal/csi-common
Niels de Vos 6d3e25f069 util: NodeGetVolumeStatsResponse.Usage may not contain negative values
Following the CSI specification, values that are included in the
VolumeUsage MUST NOT be negative. However, CephFS seems to return -1 for
the number of inodes that are available. Instead of returning a
negative value, set it to 0 so that it will not get included in the
encoded JSON response.

Updates: 
See-also: 5b0d454015/spec.md (L2477-L2487)
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2021-10-20 07:18:48 +00:00
..
controllerserver-default.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
driver.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
identityserver-default.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
nodeserver-default.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
server.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
utils_test.go util: NodeGetVolumeStatsResponse.Usage may not contain negative values 2021-10-20 07:18:48 +00:00
utils.go util: NodeGetVolumeStatsResponse.Usage may not contain negative values 2021-10-20 07:18:48 +00:00