udev: only ignore ENOENT or friends which suggest the block device is not exist
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 12 Mar 2022 11:40:58 +0000 (20:40 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 Mar 2022 15:20:08 +0000 (16:20 +0100)
commitef400c3878ad23aa02bd5bb47f089bdef49e9d8c
tree9eaad187844cb3ec2bdd3797110dac44f10b4e43
parent3f2ada89f3a277625390bf6789ccd4e7aba08743
udev: only ignore ENOENT or friends which suggest the block device is not exist

The ENOENT, ENXIO, and ENODEV error can happen easily when a block
device appears and soon removed. So, it is reasonable to ignore the
error. But other errors should not occur here, and hence let's handle
them as critical.
src/udev/udevd.c