]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect: use DISKSEQ when waiting for block devices 20257/head
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 20 Jul 2021 14:26:56 +0000 (15:26 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Wed, 28 Jul 2021 19:07:01 +0000 (20:07 +0100)
commita36429971ad46af5b29d3dafba1adc596e5aaa60
tree21fa6ac086e6188abe53748ed0d04bf0f9384999
parentbcef1743a5e9e972df6c38e0b263bbd9de7fac44
dissect: use DISKSEQ when waiting for block devices

DISKSEQ is a reliable way to find out if we missed a uevent or not, as
it's monotonically increasing. If we parse an event with a smaller or
no sequence number, we know we need to wait longer. If we parse an
event with a greater sequence number, we know we missed it and the
device was reused.
src/core/namespace.c
src/dissect/dissect.c
src/gpt-auto-generator/gpt-auto-generator.c
src/nspawn/nspawn.c
src/portable/portable.c
src/shared/discover-image.c
src/shared/dissect-image.c
src/shared/dissect-image.h
src/sysext/sysext.c
src/test/test-loop-block.c