From f451b68dfa71d3690d49bc0cf3536b77cd6572d0 Mon Sep 17 00:00:00 2001 From: cdoern Date: Thu, 16 Jun 2022 15:32:32 -0400 Subject: 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 --- libpod/container_config.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpod') 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 } -- cgit v1.2.3-54-g00ecf