udev-node: save information about device node and priority in symlink
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Aug 2021 19:16:21 +0000 (04:16 +0900)
committerMichael Biebl <biebl@debian.org>
Tue, 2 Nov 2021 16:29:45 +0000 (16:29 +0000)
commitebfd10b001c3bbccfa6d970a96b097bc087c54b6
treeeae70fa4260cc9bb3c12d92430e22e9651ca11cc
parent82d342389733e37af2e2d66a4164b1479efb92e2
udev-node: save information about device node and priority in symlink

Previously, we only store device IDs in /run/udev/links, and when
creating/removing device node symlink, we create sd_device object
corresponds to the IDs and read device node and priority from the
object. That requires parsing uevent and udev database files.

This makes link_find_prioritized() get the most prioritzed device node
without parsing the files.

(cherry picked from commit 377a83f0d80376456d9be203796f66f543a8b943)

Gbp-Pq: Name udev-node-save-information-about-device-node-and-priority.patch
src/udev/udev-node.c