summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorHironori Shiina <shiina.hironori@jp.fujitsu.com>2022-06-08 17:40:44 -0400
committerMatthew Heon <mheon@redhat.com>2022-06-14 16:12:10 -0400
commit8ed9aaba6dbf7190990ce7ba1b190ea9e96f48e4 (patch)
treeed04e3618647a56d9d828680281376d7487b6194 /pkg/domain/infra
parentf15819f25e880ec3d9d1d38d724d77450f8d23ec (diff)
downloadpodman-8ed9aaba6dbf7190990ce7ba1b190ea9e96f48e4.tar.gz
podman-8ed9aaba6dbf7190990ce7ba1b190ea9e96f48e4.tar.bz2
podman-8ed9aaba6dbf7190990ce7ba1b190ea9e96f48e4.zip
Pass '--file-locks' to OCI runtime at restoring
`podman container restore --file-locks` does not restore file locks because this option is not passed to OCI runtime. This patch fixes this issue. Signed-off-by: Hironori Shiina <shiina.hironori@jp.fujitsu.com>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r--pkg/domain/infra/abi/containers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go
index 0bca103e5..a8bfccb65 100644
--- a/pkg/domain/infra/abi/containers.go
+++ b/pkg/domain/infra/abi/containers.go
@@ -610,6 +610,7 @@ func (ic *ContainerEngine) ContainerRestore(ctx context.Context, namesOrIds []st
ImportPrevious: options.ImportPrevious,
Pod: options.Pod,
PrintStats: options.PrintStats,
+ FileLocks: options.FileLocks,
}
filterFuncs := []libpod.ContainerFilter{