Fix vserver-stat for memcg.
[util-vserver.git] / lib / issupported.c
index 3fb32e6..3f614ae 100644 (file)
@@ -50,7 +50,7 @@ vc_isSupported(vcFeatureSet feature)
     case vcFEATURE_PPTAG       :  return conf & VC_VCI_PPTAG;
     case vcFEATURE_SPACES      :  return conf & VC_VCI_SPACES;
     case vcFEATURE_PIVOT_ROOT  :  return ver >= 0x00020304;
-    case vcFEATURE_PIDSPACE    :  return ver >= 0x00020305;
+    case vcFEATURE_MEMCG       :  return ver >= 0x00020306 && conf & VC_VCI_MEMCG;
     default                    :  assert(false); 
   }