mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-13 21:09:31 +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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if statFs.Type != int64(cgroupFsType) {
|
if statFs.Type != archConvertStatFs(cgroupFsType) {
|
||||||
return false
|
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