libvirt/src/node_device
Michal Privoznik b3605a4d83 nodedev: Only set up mdevctl monitors if mdevctl.d exist
During its initialization, the nodedev driver tries to set up
monitors for /etc/mdevctl.d directory, so that it can register
mdevs as they come and go. However, if the file doesn't exist
there is nothing to monitor and therefore we can exit early. In
fact, we have to otherwise monitorFileRecursively() fails and
whole driver initialization fails with it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
2021-04-13 09:34:14 +02:00
..
meson.build build: Remove unused 'conflicts' key from virt_daemon_unit 2021-02-10 09:30:41 -07:00
node_device_driver.c api: Add 'flags' param to virNodeDeviceCreate/Undefine() 2021-04-09 12:43:47 -05:00
node_device_driver.h api: Add 'flags' param to virNodeDeviceCreate/Undefine() 2021-04-09 12:43:47 -05:00
node_device_udev.c nodedev: Only set up mdevctl monitors if mdevctl.d exist 2021-04-13 09:34:14 +02:00
node_device_udev.h Revert "Also look for dmi information in /sys/class" 2020-10-02 13:56:46 +02:00
virtnodedevd.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtnodedevd.service.in systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00
virtnodedevd.sysconf systemd: Move timeout from service files to sysconf files 2020-04-03 11:50:50 +02:00