summaryrefslogtreecommitdiff
path: root/libpod/container_api.go
diff options
context:
space:
mode:
authorRadostin Stoyanov <radostin@redhat.com>2021-11-17 11:53:12 +0000
committerRadostin Stoyanov <radostin@redhat.com>2021-11-18 19:23:25 +0000
commit6d23ea60d255b750a8e221cb9964f552218d4297 (patch)
treea2e207973ec2314a550147a3feb1d12c3810ad4a /libpod/container_api.go
parent0376e6092c850435b4740876045fdccb467cafd8 (diff)
downloadpodman-6d23ea60d255b750a8e221cb9964f552218d4297.tar.gz
podman-6d23ea60d255b750a8e221cb9964f552218d4297.tar.bz2
podman-6d23ea60d255b750a8e221cb9964f552218d4297.zip
Add --file-locks checkpoint/restore option
CRIU supports checkpoint/restore of file locks. This feature is required to checkpoint/restore containers running applications such as MySQL. Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
Diffstat (limited to 'libpod/container_api.go')
-rw-r--r--libpod/container_api.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/container_api.go b/libpod/container_api.go
index a41bb03df..7ae9f497c 100644
--- a/libpod/container_api.go
+++ b/libpod/container_api.go
@@ -798,6 +798,9 @@ type ContainerCheckpointOptions struct {
// how much time each component in the stack requires to
// checkpoint a container.
PrintStats bool
+ // FileLocks tells the API to checkpoint/restore a container
+ // with file-locks
+ FileLocks bool
}
// Checkpoint checkpoints a container