[pve-devel] [PATCH pve-container 3/3] cgroup: get_subdir: return cgroupv2 path for undef controller
Alexandre Derumier
aderumier at odiso.com
Fri Oct 30 10:42:28 CET 2020
---
src/PVE/LXC/CGroup.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/LXC/CGroup.pm b/src/PVE/LXC/CGroup.pm
index 19562c2..74d84c4 100644
--- a/src/PVE/LXC/CGroup.pm
+++ b/src/PVE/LXC/CGroup.pm
@@ -35,6 +35,7 @@ sub get_subdir {
my $path = $entry->{$kind};
return $path if defined $path;
+ return "/lxc/$self->{vmid}" if !$controller;
$path = PVE::LXC::Command::get_cgroup_path(
$self->{vmid},
--
2.20.1
More information about the pve-devel
mailing list