mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
Replace more cases of /system with /machine
The change in commit aed4986322
was incomplete, missing a couple of cases of /system. This
caused failure to start VMs.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
0f35e00135
commit
1e05073fbb
@ -557,7 +557,7 @@ virCgroupPtr virLXCCgroupCreate(virDomainDefPtr def, bool startup)
|
|||||||
/* We only auto-create the default partition. In other
|
/* We only auto-create the default partition. In other
|
||||||
* cases we expec the sysadmin/app to have done so */
|
* cases we expec the sysadmin/app to have done so */
|
||||||
rc = virCgroupNewPartition(def->resource->partition,
|
rc = virCgroupNewPartition(def->resource->partition,
|
||||||
STREQ(def->resource->partition, "/system"),
|
STREQ(def->resource->partition, "/machine"),
|
||||||
-1,
|
-1,
|
||||||
&parent);
|
&parent);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
|
@ -256,7 +256,7 @@ int qemuInitCgroup(virQEMUDriverPtr driver,
|
|||||||
/* We only auto-create the default partition. In other
|
/* We only auto-create the default partition. In other
|
||||||
* cases we expec the sysadmin/app to have done so */
|
* cases we expec the sysadmin/app to have done so */
|
||||||
rc = virCgroupNewPartition(vm->def->resource->partition,
|
rc = virCgroupNewPartition(vm->def->resource->partition,
|
||||||
STREQ(vm->def->resource->partition, "/system"),
|
STREQ(vm->def->resource->partition, "/machine"),
|
||||||
cfg->cgroupControllers,
|
cfg->cgroupControllers,
|
||||||
&parent);
|
&parent);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user