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, 12 Oct 2021 20:39:59 +0000 (21:39 +0100)
commit22d556d468c526d9a4525df0b8ddc5aca3c6b8da
tree75c01fb457873bf14863b588fa3cab42af0c8693
parent4d91c9f2594c8e7a4585bec1981fd1d422d08f88
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