forked from kata-containers/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: introduction of archConvertStatFs function
Fixes: kata-containers#908 Not all the architectures convert the StatFs to int64 (e.g s390x). The function archConvertStatFs could be reimplemented for other architecture to correctly convert the StatFs.Type. Signed-off-by: Alice Frosi <afrosi@de.ibm.com>
- Loading branch information
Alice Frosi
committed
Nov 15, 2018
1 parent
0911331
commit 4594c85
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// +build !s390x | ||
|
||
package main | ||
|
||
func archConvertStatFs(cgroupFsType int) int64 { | ||
return int64(cgroupFsType) | ||
} |