Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #909 from alicefr/add_archConvertStatFs
Browse files Browse the repository at this point in the history
build: introduction of archConvertStatFs function
  • Loading branch information
Sebastien Boeuf committed Nov 16, 2018
2 parents 23e75f0 + b185f31 commit c0551de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/oci.go
Expand Up @@ -123,7 +123,7 @@ func isCgroupMounted(cgroupPath string) bool {
return false
}

if statFs.Type != int64(cgroupFsType) {
if statFs.Type != archConvertStatFs(cgroupFsType) {
return false
}

Expand Down
10 changes: 10 additions & 0 deletions cli/utils_arch_base.go
@@ -0,0 +1,10 @@
// +build !s390x
//
// SPDX-License-Identifier: Apache-2.0
//

package main

func archConvertStatFs(cgroupFsType int) int64 {
return int64(cgroupFsType)
}

0 comments on commit c0551de

Please sign in to comment.