]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Don't generate clashing machine names for embed driver
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Mar 2020 16:56:12 +0000 (17:56 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 18 Mar 2020 14:52:08 +0000 (15:52 +0100)
commitc9bd08ee352373ed121c10f0adf11a4a0a29c857
tree1d6c4957a3f18a7fbd783f28cccf40df62432d65
parent1dd3282873e7028d2b90d0bb5905da7656216b23
conf: Don't generate clashing machine names for embed driver

So far, when using the qemu:///embed driver, management
applications can't chose whether they want to register their
domains in machined or not. While having that option is certainly
desired, it will require more work. What we can do meanwhile is
to generate names that include part of hash of the root
directory. This is to ensure that if two applications using
different roots but the same domain name (and ID) start the
domain no clashing name for machined is generated.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/lxc/lxc_domain.c
src/qemu/qemu_domain.c
tests/virsystemdtest.c