core/device: always accept syspath change
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 Apr 2022 18:14:44 +0000 (03:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Aug 2022 13:15:02 +0000 (22:15 +0900)
commit4a1a1caf21921a0c0997588552262b61eb556d19
tree2078bc5d8db5e6db062d5005356984056e973c1f
parentdce2d35ce53d2ac6ae4d1b3b1a716d6333fb84e7
core/device: always accept syspath change

When multiple devices have the same devlink, then
adding/updating/removing one of the device may cause syspath change.

Fixes the following issue in
https://github.com/systemd/systemd/issues/23208#issue-1217909746
> the above shows an inconsistency between udev's and systemd's handling
> of the two different devices having the same alias. While udev replaces
> the by-uuid symlink which now points to sdh1 rather than sdd1, systemd
> keeps the previous mapping to sdd1 and emits a warning. This is not the
> problem cause but worth mentioning.
src/core/device.c