[pve-devel] applied: [PATCH common 2/2] cgroup: get mode by checking /sys/fs/cgroup mount point

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Sep 21 10:05:06 CEST 2022


Am 21/09/2022 um 09:53 schrieb Wolfgang Bumiller:
> Since even in pure unified layouts there may be a
> `name=systemd` v1 cgroup mounted additionally (manually or
> potentially via systemd-nspawn apparently), we should check
> what's actually mounted at `/sys/fs/cgroup` rather than
> whether v1 cgroups exist.
> 
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
>  src/PVE/CGroup.pm | 27 ++++++++++++++++++---------
>  1 file changed, 18 insertions(+), 9 deletions(-)
> 
>

applied, thanks!

> +	my $mounts = PVE::ProcFSTools::parse_proc_mounts();
> +	for my $entry (@$mounts) {
> +	    my ($what, $dir, $fstype, $opts) = @$entry;

style nit: we nowadays try to use $foo->@* for new additions, but really no hard
feelings so I kept it as is.





More information about the pve-devel mailing list