aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadostin Stoyanov <radostin@redhat.com>2021-11-19 13:03:06 +0000
committerRadostin Stoyanov <radostin@redhat.com>2021-11-19 13:11:21 +0000
commitb2623ceb4b8a55ba46d1262dac220f0eb4e4eabd (patch)
tree7f2305ccc579254188e59c80cd15cc43a7992e7a
parent84021cfdc3c968535208c6c25bef18a477f8bea1 (diff)
downloadpodman-b2623ceb4b8a55ba46d1262dac220f0eb4e4eabd.tar.gz
podman-b2623ceb4b8a55ba46d1262dac220f0eb4e4eabd.tar.bz2
podman-b2623ceb4b8a55ba46d1262dac220f0eb4e4eabd.zip
api/handlers: Add checkpoint/restore FileLocks
Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
-rw-r--r--pkg/api/handlers/libpod/containers.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/api/handlers/libpod/containers.go b/pkg/api/handlers/libpod/containers.go
index d5da22a91..21c72bbda 100644
--- a/pkg/api/handlers/libpod/containers.go
+++ b/pkg/api/handlers/libpod/containers.go
@@ -221,6 +221,7 @@ func Checkpoint(w http.ResponseWriter, r *http.Request) {
PrintStats bool `schema:"printStats"`
PreCheckpoint bool `schema:"preCheckpoint"`
WithPrevious bool `schema:"withPrevious"`
+ FileLocks bool `schema:"fileLocks"`
}{
// override any golang type defaults
}
@@ -246,6 +247,7 @@ func Checkpoint(w http.ResponseWriter, r *http.Request) {
PrintStats: query.PrintStats,
PreCheckPoint: query.PreCheckpoint,
WithPrevious: query.WithPrevious,
+ FileLocks: query.FileLocks,
}
if query.Export {
@@ -305,6 +307,7 @@ func Restore(w http.ResponseWriter, r *http.Request) {
IgnoreStaticIP bool `schema:"ignoreStaticIP"`
IgnoreStaticMAC bool `schema:"ignoreStaticMAC"`
PrintStats bool `schema:"printStats"`
+ FileLocks bool `schema:"fileLocks"`
PublishPorts string `schema:"publishPorts"`
}{
// override any golang type defaults
@@ -324,6 +327,7 @@ func Restore(w http.ResponseWriter, r *http.Request) {
IgnoreStaticIP: query.IgnoreStaticIP,
IgnoreStaticMAC: query.IgnoreStaticMAC,
PrintStats: query.PrintStats,
+ FileLocks: query.FileLocks,
PublishPorts: strings.Fields(query.PublishPorts),
}