summaryrefslogtreecommitdiff
path: root/pkg/criu/criu.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-21 11:58:56 -0400
committerGitHub <noreply@github.com>2022-04-21 11:58:56 -0400
commitcb09c26c6519c2fff8be7285d585672a9066f2da (patch)
tree4adfde8375b9a76d6942b612fe2bc75aae49124c /pkg/criu/criu.go
parente47dda5d81772fcc1c2417062303681a72780bbd (diff)
parentbbe1063a5ae681ad04a049518c6087421b919f2e (diff)
downloadpodman-cb09c26c6519c2fff8be7285d585672a9066f2da.tar.gz
podman-cb09c26c6519c2fff8be7285d585672a9066f2da.tar.bz2
podman-cb09c26c6519c2fff8be7285d585672a9066f2da.zip
Merge pull request #13505 from rst0git/checkpoint-image-1
Add support for checkpoint image
Diffstat (limited to 'pkg/criu/criu.go')
-rw-r--r--pkg/criu/criu.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/criu/criu.go b/pkg/criu/criu.go
index b54870abc..6570159d7 100644
--- a/pkg/criu/criu.go
+++ b/pkg/criu/criu.go
@@ -28,6 +28,11 @@ func CheckForCriu(version int) bool {
return result
}
+func GetCriuVestion() (int, error) {
+ c := criu.MakeCriu()
+ return c.GetCriuVersion()
+}
+
func MemTrack() bool {
features, err := criu.MakeCriu().FeatureCheck(
&rpc.CriuFeatures{