udev-node: assume no new claim to a symlink if /run/udev/links is not updated
During creating a symlink to a device node, if another device node which
requests the same symlink is added/removed, `stat_inode_unmodified()`
should always detects that. We do not need to continue the loop
unconditionally.
(cherry picked from commit
8f27311eb2aec2411d1fb7d62e6c9d75d21ae8df)
Gbp-Pq: Name udev-node-assume-no-new-claim-to-a-symlink-if-run-udev-li.patch
udev-node: always update timestamp of stack directory
Please see the comments in the code.
(cherry picked from commit
6df797f75fa08bb1a9e657001229bd47903e6174)
Gbp-Pq: Name udev-node-always-update-timestamp-of-stack-directory.patch
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
udev-node: stack directory must exist when adding device node symlink
(cherry picked from commit
46070dbf26435ba0def099121f46a6253f3f19b6)
Gbp-Pq: Name udev-node-stack-directory-must-exist-when-adding-device-n.patch
udev-node: split out permission handling from udev_node_add()
And then merge udev_node_add() and udev_node_update_old_links().
(cherry picked from commit
2f48561e0db3cd63f65e9311b4d69282b4ac605d)
Gbp-Pq: Name udev-node-split-out-permission-handling-from-udev_node_ad.patch
sd-device: introduce device_has_devlink()
(cherry picked from commit
b881ce16b9ccae4c3089c82e2ea1781cd9773a4f)
Gbp-Pq: Name sd-device-introduce-device_has_devlink.patch