virCgroupNewDomainPartition(virCgroupPtr partition,
const char *driver,
const char *name,
- bool create,
virCgroupPtr *group)
{
g_autofree char *grpname = NULL;
* a group for driver, is to avoid overhead to track
* cumulative usage that we don't need.
*/
- if (virCgroupMakeGroup(partition, newGroup, create,
+ if (virCgroupMakeGroup(partition, newGroup, true,
VIR_CGROUP_MEM_HIERACHY) < 0) {
return -1;
}
if (virCgroupNewDomainPartition(parent,
drivername,
name,
- true,
&newGroup) < 0)
return -1;
virCgroupNewDomainPartition(virCgroupPtr partition G_GNUC_UNUSED,
const char *driver G_GNUC_UNUSED,
const char *name G_GNUC_UNUSED,
- bool create G_GNUC_UNUSED,
virCgroupPtr *group G_GNUC_UNUSED)
{
virReportSystemError(ENXIO, "%s",
return -1;
}
- if ((rv = virCgroupNewDomainPartition(partitioncgroup, "lxc", "foo", true, &domaincgroup)) != 0) {
+ if ((rv = virCgroupNewDomainPartition(partitioncgroup, "lxc", "foo", &domaincgroup)) != 0) {
fprintf(stderr, "Cannot create LXC cgroup: %d\n", -rv);
return -1;
}
return -1;
}
- if ((rv = virCgroupNewDomainPartition(partitioncgroup3, "lxc", "cpu.foo", true, &domaincgroup)) != 0) {
+ if ((rv = virCgroupNewDomainPartition(partitioncgroup3, "lxc", "cpu.foo", &domaincgroup)) != 0) {
fprintf(stderr, "Cannot create LXC cgroup: %d\n", -rv);
return -1;
}