summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-18 21:57:16 +0100
committerGitHub <noreply@github.com>2021-11-18 21:57:16 +0100
commitb24110ea568e07e76be5a8df2443767494d6490c (patch)
tree6ad5b6e5099df507ff1cf1bff64624224f0a8879 /pkg/domain/infra/tunnel
parent0376e6092c850435b4740876045fdccb467cafd8 (diff)
parent7098463e7808c4a59c5a6404127ffad0863625b1 (diff)
downloadpodman-b24110ea568e07e76be5a8df2443767494d6490c.tar.gz
podman-b24110ea568e07e76be5a8df2443767494d6490c.tar.bz2
podman-b24110ea568e07e76be5a8df2443767494d6490c.zip
Merge pull request #12333 from rst0git/file-locks
Add --file-locks checkpoint/restore option
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r--pkg/domain/infra/tunnel/containers.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/containers.go b/pkg/domain/infra/tunnel/containers.go
index a7dcc923b..2127f8749 100644
--- a/pkg/domain/infra/tunnel/containers.go
+++ b/pkg/domain/infra/tunnel/containers.go
@@ -303,6 +303,7 @@ func (ic *ContainerEngine) ContainerExport(ctx context.Context, nameOrID string,
func (ic *ContainerEngine) ContainerCheckpoint(ctx context.Context, namesOrIds []string, opts entities.CheckpointOptions) ([]*entities.CheckpointReport, error) {
options := new(containers.CheckpointOptions)
+ options.WithFileLocks(opts.FileLocks)
options.WithIgnoreRootfs(opts.IgnoreRootFS)
options.WithKeep(opts.Keep)
options.WithExport(opts.Export)
@@ -352,6 +353,7 @@ func (ic *ContainerEngine) ContainerRestore(ctx context.Context, namesOrIds []st
}
options := new(containers.RestoreOptions)
+ options.WithFileLocks(opts.FileLocks)
options.WithIgnoreRootfs(opts.IgnoreRootFS)
options.WithIgnoreVolumes(opts.IgnoreVolumes)
options.WithIgnoreStaticIP(opts.IgnoreStaticIP)