]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainAttachDeviceMknodHelper: Create more files in a single go
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Jul 2020 18:00:19 +0000 (20:00 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 3 Aug 2020 17:40:35 +0000 (19:40 +0200)
commit86d2e323f4ffdb52e0b53badf18add4a5257991b
treeca82d4ad64243b26a928538a19e1bba1d29e3f7a
parentbf9aeab4f0c274e56bc7bc25ff0c27186c6befda
qemuDomainAttachDeviceMknodHelper: Create more files in a single go

So far, when attaching a device needs two or more /dev nodes
created into a domain, we fork off and run the helper for every
node separately. For majority of devices this is okay, because
they need no or one node created anyway. But the idea is to use
this attach code to build the namespace when starting a domain,
in which case there will be way more nodes than one.

To achieve this, the recursive approach for handling symlinks has
to be turned into an iterative one.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_namespace.c