We set disjoint cpu sets with the following command:
cgset -r cpuset.cpus=0,2 slot1
However, we don't allow commas that as part of the grammar when used
in the configuration file at cgconfig.conf. This patch seeks to
address that.
Signed-off-by: James M Leddy <james.leddy@redhat.com>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
"perm" {return PERM;}
"group" {return GROUP;}
"namespace" {return NAMESPACE;}
-[a-zA-Z0-9_\-\/\.]+ {yylval.name = strdup(yytext); return ID;}
+[a-zA-Z0-9_\-\/\.\,]+ {yylval.name = strdup(yytext); return ID;}
\"[^"]*\" {yylval.name = strdup(yytext+1); yylval.name[strlen(yylval.name)-1] = '\0'; return ID; }
. {return yytext[0];}
%%