]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: fix generation of default resource partition
authorPavel Hrdina <phrdina@redhat.com>
Wed, 25 Aug 2021 11:01:52 +0000 (13:01 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 26 Aug 2021 16:25:29 +0000 (18:25 +0200)
commit3796e8e1ff2d0ada4be62079d3efe849a8166e0c
tree96395bab04df5eb7c3daa85172a3d0c70565de56
parentcb6c650064cba70191a0123e10ddc6b5365de6cd
src: fix generation of default resource partition

Now that resource structure can have appid as well we need to adapt code
that creates default resource partition if not provided by user.
Otherwise starting a VM with appid defined would fail with following
error:

    error: unsupported configuration: Resource partition '(null)' must start with '/'

Fixes: 38b5f4faabccf681439d99e5394954c6ef7a5a40
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/lxc/lxc_process.c
src/qemu/qemu_cgroup.c