When getting the driver/domain cgroup it is possible to specify
whether it should be auto created. If auto-creation was turned
off, libvirt still mistakenly created its own top level cgroup
* src/util/cgroup.c: Honour autocreate flag for top level cgroup
}
static int virCgroupAppRoot(int privileged,
- virCgroupPtr *group)
+ virCgroupPtr *group,
+ int create)
{
virCgroupPtr rootgrp = NULL;
int rc;
if (rc != 0)
goto cleanup;
- rc = virCgroupMakeGroup(rootgrp, *group, 1);
+ rc = virCgroupMakeGroup(rootgrp, *group, create);
cleanup:
virCgroupFree(&rootgrp);
char *path = NULL;
virCgroupPtr rootgrp = NULL;
- rc = virCgroupAppRoot(privileged, &rootgrp);
+ rc = virCgroupAppRoot(privileged, &rootgrp, create);
if (rc != 0)
goto out;