]> git.ipfire.org Git - thirdparty/systemd.git/commit
udevadm trigger: log errors and return first failure 12508/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Jun 2019 07:54:54 +0000 (09:54 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Jun 2019 07:54:54 +0000 (09:54 +0200)
commit97afc0351a96e0daa83964df33937967c75c644f
tree4a9526207cfd01802e031eba272c4824fafa3f8b
parent4bea24696a6fb5cf3c9306e83ead5e9efc27239e
udevadm trigger: log errors and return first failure

When udevadm trigger is called, the list of devices to trigger is always
generated through enumeration, and devices can come and go, so we should not
treat -ENOENT as a failure. But other types of failure should be logged.
It seems they were logged until baa30fbc2c04b23209d0b8fb3c86cd15ef9ea81a.

Also, return the first error. (I'm not sure if there are other failure modes
which we want to ignore. If they are, they'll need to be whitelisted like
-ENOENT.).
src/udev/udevadm-trigger.c