lxc: Correctly report active cgroups

There was an inverted return value in lxcCgroupControllerActive().
The function assumes cgroups are active and do couple of checks
to prove that. If any of them fails, false is returned. Therefore,
at the end, after all checks are done we must return true, not false.
(cherry picked from commit 0dddd680c2)
This commit is contained in:
Michal Privoznik 2012-10-01 14:22:42 +02:00 committed by Cole Robinson
parent 0cfd7b9afe
commit 5c18805704

View File

@ -1645,7 +1645,7 @@ static bool lxcCgroupControllerActive(virLXCDriverPtr driver,
if (driver->cgroupControllers & (1 << controller)) if (driver->cgroupControllers & (1 << controller))
return true; return true;
#endif #endif
return false; return true;
} }