this is what's actually applied to the container (although
the container may be imposing an even stricter limit, but
that's not what we want to see...)
also, the v2 cpuset list may be empty (and often is for
unprivileged+nesting containers), which currently fails to
parse
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
my $cgroup = PVE::LXC::CGroup->new($vmid);
my ($cpuset, $path);
- if (defined($path = $cgroup->get_path('cpuset'))) {
+ if (defined($path = $cgroup->get_path('cpuset', 1))) {
$cpuset = eval { PVE::CpuSet->new_from_path($path); };
- } elsif (defined($path = $cgroup->get_path())) {
+ } elsif (defined($path = $cgroup->get_path(undef, 1))) {
$cpuset = eval { PVE::CpuSet->new_from_path($path); };
} else {
# Container not running.