DevinLeamy commented on code in PR #539:
URL: https://github.com/apache/mesos/pull/539#discussion_r1543240812


##########
src/slave/containerizer/mesos/isolators/cgroups2/cgroups2.cpp:
##########
@@ -30,6 +32,31 @@ namespace mesos {
 namespace internal {
 namespace slave {
 
+namespace cgroups2_isolator {
+
+Try<bool> supported()
+{
+  #ifndef ENABLE_CGROUPS_V2
+    return false;
+  #endif
+  if (!::cgroups2::enabled()) {

Review Comment:
   This checks if the host supports the `cgroup2` filesystem type. The name 
`cgroups2::enabled()` could be better. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to