diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-07-08 10:16:13 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-07-10 10:54:35 +0200 |
commit | bbe03e61a375416180432fbd9d00d23a7c2a4714 (patch) | |
tree | 959eb8a850da9f9ba10d5e0cfb0fe213d20c4fdb /pkg/cgroups/memory.go | |
parent | 551edd287e7cb31327d18c3ebc0d2e6b1160c235 (diff) | |
download | podman-bbe03e61a375416180432fbd9d00d23a7c2a4714.tar.gz podman-bbe03e61a375416180432fbd9d00d23a7c2a4714.tar.bz2 podman-bbe03e61a375416180432fbd9d00d23a7c2a4714.zip |
cgroups: support creating cgroupsv2 paths
drop the limitation of not supporting creating new cgroups v2 paths.
Every controller enabled /sys/fs/cgroup will be propagated down to the
created path. This won't work for rootless cgroupsv2, but it is not
an issue for now, as this code is used only by CRI-O.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/cgroups/memory.go')
-rw-r--r-- | pkg/cgroups/memory.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/cgroups/memory.go b/pkg/cgroups/memory.go index 0505eac40..80e88d17c 100644 --- a/pkg/cgroups/memory.go +++ b/pkg/cgroups/memory.go @@ -26,7 +26,7 @@ func (c *memHandler) Apply(ctr *CgroupControl, res *spec.LinuxResources) error { // Create the cgroup func (c *memHandler) Create(ctr *CgroupControl) (bool, error) { if ctr.cgroup2 { - return false, fmt.Errorf("memory create not implemented for cgroup v2") + return false, nil } return ctr.createCgroupDirectory(Memory) } |