• P
    vircgroup: introduce virCgroupV2Available · 034ef217
    Pavel Hrdina 提交于
    We cannot detect only mount points to figure out whether cgroup v2
    is available because systemd uses cgroup v2 for process tracking and
    all controllers are mounted as cgroup v1 controllers.
    
    To make sure that this is no the situation we need to check
    'cgroup.controllers' file if it's not empty to make sure that cgroup
    v2 is not mounted only for process tracking.
    Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
    034ef217
vircgroupv2.c 2.8 KB