mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-13 12:59:36 +00:00
Merge pull request #909 from alicefr/add_archConvertStatFs
build: introduction of archConvertStatFs function
This commit is contained in:
@@ -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
10
cli/utils_arch_base.go
Normal file
@@ -0,0 +1,10 @@
|
||||
// +build !s390x
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
package main
|
||||
|
||||
func archConvertStatFs(cgroupFsType int) int64 {
|
||||
return int64(cgroupFsType)
|
||||
}
|
Reference in New Issue
Block a user