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.
This commit is contained in:
Luca Boccassi
2021-07-28 20:07:01 +01:00
parent bcef1743a5
commit a36429971a
10 changed files with 55 additions and 18 deletions
+1
View File
@@ -5700,6 +5700,7 @@ static int run(int argc, char *argv[]) {
arg_image,
&arg_verity_settings,
NULL,
loop->diskseq,
loop->uevent_seqnum_not_before,
loop->timestamp_not_before,
dissect_image_flags,