]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cgroup: Fix start VMs coincidently failed
authorWang Yufei <james.wangyufei@huawei.com>
Thu, 20 Mar 2014 07:14:01 +0000 (07:14 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Mar 2014 12:27:28 +0000 (13:27 +0100)
commitbfb29654c802843f000b318c37bec9b114ac5b7b
tree5f752c1978884a8dd8dcf7a85463a39f6556390c
parentedff187a39c6e4c18a690c999c1fef861fdf29f6
cgroup: Fix start VMs coincidently failed

When I start multi VMs coincidently and any of the cgroup directories
named machine doesn't exist. There's a chance that VM start failed because
of creating directory failed:
Unable to initialize /machine cgroup: File exists
When the errno returned by mkdir in virCgroupMakeGroup is EEXIST,
we should pass it through and continue to start the VM.
Signed-off-by: Wang Yufei <james.wangyufei@huawei.com>
src/util/vircgroup.c