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>
This commit is contained in:
Radostin Stoyanov
2021-11-17 11:53:12 +00:00
parent 0376e6092c
commit 6d23ea60d2
12 changed files with 64 additions and 0 deletions

View File

@ -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