[libvirt] [PATCH v2] udev: only report a warning if udev_enumerate_scan_devices fails

John Ferlan jferlan at redhat.com
Thu Feb 14 13:51:17 UTC 2019



On 2/14/19 4:01 AM, Marc Hartmayer wrote:
> Even if an error is reported by `udev_enumerate_scan_devices`,
> e.g. because a driver of a device has an bug, we can still enumerate
> all other devices. Additionally the documentation of
> udev_enumerate_scan_devices says that on success an integer >= 0 is
> returned (see man udev_enumerate_scan_devices(3)).
> 
> Reviewed-by: Bjoern Walk <bwalk at linux.ibm.com>
> Signed-off-by: Marc Hartmayer <mhartmay at linux.ibm.com>
> ---
>  src/node_device/node_device_udev.c | 10 +++-------
>  1 file changed, 3 insertions(+), 7 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

John
(and pushed)




More information about the libvir-list mailing list