Merge pull request #909 from alicefr/add_archConvertStatFs

build: introduction of archConvertStatFs function
This commit is contained in:
Sebastien Boeuf
2018-11-15 19:54:53 -08:00
committed by GitHub
2 changed files with 11 additions and 1 deletions

View File

@@ -123,7 +123,7 @@ func isCgroupMounted(cgroupPath string) bool {
return false
}
if statFs.Type != int64(cgroupFsType) {
if statFs.Type != archConvertStatFs(cgroupFsType) {
return false
}

10
cli/utils_arch_base.go Normal file
View File

@@ -0,0 +1,10 @@
// +build !s390x
//
// SPDX-License-Identifier: Apache-2.0
//
package main
func archConvertStatFs(cgroupFsType int) int64 {
return int64(cgroupFsType)
}