https://bugzilla.redhat.com/show_bug.cgi?id=655222
* set_put(), hashmap_put() return values check. i.e. == 0 doesn't free()!
-* chkconfig/systemd-install glue
+* chkconfig/systemd enable glue
* io priority during initialization
for (;;) {
MountPoint p;
char *controller, *where;
+ int enabled = false;
- if (fscanf(f, "%ms %*i %*i %*i", &controller) != 1) {
+ if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 1) {
if (feof(f))
break;
goto finish;
}
+ if (!enabled) {
+ free(controller);
+ continue;
+ }
+
if (asprintf(&where, "/sys/fs/cgroup/%s", controller) < 0) {
free(controller);
r = -ENOMEM;