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>
Fri, 19 Nov 2021 20:11:45 +0000 (20:11 +0000)
commit0869ec8627503521c795747798ed39cb14a114f6
tree9ce40c8f4c0b27e4f79833e97b63ad23cf2c3f92
parent3a87e8fcb66f5d8b74247bb74a96dd9067da0245
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