summaryrefslogtreecommitdiff
path: root/libpod/container_config.go
diff options
context:
space:
mode:
authorcdoern <cdoern@redhat.com>2022-06-16 15:32:32 -0400
committerCharlie Doern <cdoern@redhat.com>2022-06-20 10:25:00 -0400
commitf451b68dfa71d3690d49bc0cf3536b77cd6572d0 (patch)
tree8f16252090eed226bb74dd4dcfddfe39fb10696d /libpod/container_config.go
parentff06c791ad7fb32b6a055e0d005f7354df43a5d1 (diff)
downloadpodman-f451b68dfa71d3690d49bc0cf3536b77cd6572d0.tar.gz
podman-f451b68dfa71d3690d49bc0cf3536b77cd6572d0.tar.bz2
podman-f451b68dfa71d3690d49bc0cf3536b77cd6572d0.zip
podman pod create --shm-size
expose the --shm-size flag to podman pod create and add proper handling and inheritance for the option. resolves #14609 Signed-off-by: Charlie Doern <cdoern@redhat.com>
Diffstat (limited to 'libpod/container_config.go')
-rw-r--r--libpod/container_config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/container_config.go b/libpod/container_config.go
index 6558f3c89..76200da5e 100644
--- a/libpod/container_config.go
+++ b/libpod/container_config.go
@@ -432,4 +432,10 @@ type InfraInherit struct {
SeccompProfilePath string `json:"seccomp_profile_path,omitempty"`
SelinuxOpts []string `json:"selinux_opts,omitempty"`
Volumes []*specgen.NamedVolume `json:"volumes,omitempty"`
+ ShmSize *int64 `json:"shm_size"`
+}
+
+// IsDefaultShmSize determines if the user actually set the shm in the parent ctr or if it has been set to the default size
+func (inherit *InfraInherit) IsDefaultShmSize() bool {
+ return inherit.ShmSize == nil || *inherit.ShmSize == 65536000
}