sd-device: skip diskseq verification when ID_IGNORE_DISKSEQ property is set
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Apr 2022 14:01:33 +0000 (23:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Apr 2022 15:10:28 +0000 (00:10 +0900)
commit03b894fc09473068f706ccf063c89ec2c3a78a4c
treec6f23b01f3d76814dd94b81f882fe91284d03ebd
parent17d97d4c90f8ca7420ce1717bf790f5e028ec057
sd-device: skip diskseq verification when ID_IGNORE_DISKSEQ property is set

Some drivers do not announce the diskseq change.
E.g. for md devices, the kernel increments the diskseq *after*
emitting a 'change' uevent when backing block devices are added to
a md device, and udevd does not receive no uevent which contains
the new diskseq.
src/libsystemd/sd-device/sd-device.c