diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-21 17:57:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 17:57:24 +0000 |
commit | fe974101ebc30d7902d29daa2e7832e61041f46e (patch) | |
tree | 3736a7b2920d2d0abff3393268dc9d556f2a06a7 /libpod/container_config.go | |
parent | b8b0fa80454fe0f3bcdab24bbf17cf0b6c2e8661 (diff) | |
parent | f451b68dfa71d3690d49bc0cf3536b77cd6572d0 (diff) | |
download | podman-fe974101ebc30d7902d29daa2e7832e61041f46e.tar.gz podman-fe974101ebc30d7902d29daa2e7832e61041f46e.tar.bz2 podman-fe974101ebc30d7902d29daa2e7832e61041f46e.zip |
Merge pull request #14625 from cdoern/podShm
podman pod create --shm-size
Diffstat (limited to 'libpod/container_config.go')
-rw-r--r-- | libpod/container_config.go | 6 |
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 } |