• J
    lxc: Resolve issue with GetScheduler APIs for non running domain · f90b0249
    John Ferlan 提交于
    As a consequence of the cgroup layout changes from commit 'cfed9ad4', the
    lxcDomainGetSchedulerParameters[Flags]()' and lxcGetSchedulerType() APIs
    failed to return data for a non running domain.  This can be seen through
    a 'virsh schedinfo <domain>' command which returns:
    
    Scheduler      : Unknown
    error: Requested operation is not valid: cgroup CPU controller is not mounted
    
    Prior to that change a non running domain would return:
    
    Scheduler      : posix
    cpu_shares     : 0
    vcpu_period    : 0
    vcpu_quota     : 0
    emulator_period: 0
    emulator_quota : 0
    
    This patch will restore the capability to return configuration only data
    for a non running domain regardless of whether cgroups are available.
    (cherry picked from commit 38ada092)
    f90b0249
lxc_driver.c 139.9 KB