diff options
author | Adrian Reber <areber@redhat.com> | 2019-06-25 12:22:33 +0000 |
---|---|---|
committer | Adrian Reber <areber@redhat.com> | 2019-06-25 14:55:11 +0200 |
commit | 94e2a0cd63935708815bfaa3399fb57210d94065 (patch) | |
tree | 01781f4b1a8cdf0f7cc63fc8bf6df88e78ab9924 /libpod/container.go | |
parent | 21978c99088c04bcc847eb12f829876708c0b9e2 (diff) | |
download | podman-94e2a0cd63935708815bfaa3399fb57210d94065.tar.gz podman-94e2a0cd63935708815bfaa3399fb57210d94065.tar.bz2 podman-94e2a0cd63935708815bfaa3399fb57210d94065.zip |
Track if a container is restored from an exported checkpoint
Instead of only tracking that a container is restored from
a checkpoint locally in runtime_ctr.go this adds a flag to the
Container structure.
Upcoming patches to correctly label the root file-system mount-point
need also to know if a container is restored from a checkpoint.
Instead of passing a parameter around a lot of functions, this
adds that information to the Container structure.
Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'libpod/container.go')
-rw-r--r-- | libpod/container.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go index 464b233d1..3a0f60fd9 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -157,6 +157,9 @@ type Container struct { // being checkpointed. If requestedIP is set it will be used instead // of config.StaticIP. requestedIP net.IP + + // This is true if a container is restored from a checkpoint. + restoreFromCheckpoint bool } // ContainerState contains the current state of the container |