summaryrefslogtreecommitdiff
path: root/src/gpt-auto-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-04-20 16:19:27 +0200
committerLennart Poettering <lennart@poettering.net>2021-04-20 17:20:38 +0200
commit4a62257d6837fe33c7fb93a417156b94a6c8c83a (patch)
treec2739f41d84b6fea7cf3b4df3c64106e7978abd3 /src/gpt-auto-generator
parent8ede1e86b2cfdbe7bb1e1913a08e068a82d4532c (diff)
downloadsystemd-4a62257d6837fe33c7fb93a417156b94a6c8c83a.tar.gz
dissect: ignore udev database entries from before the loopback attachment
This tries to shorten the race of device reuse a bit more: let's ignore udev database entries that are older than the time where we started to use a loopback device. This doesn't fix the whole loopback device raciness mess, but it makes the race window a bit shorter.
Diffstat (limited to 'src/gpt-auto-generator')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index eb80165bbe..d3af814136 100644
--- a/src/gpt-auto-generator/gpt-auto-generator.c
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
@@ -673,6 +673,7 @@ static int enumerate_partitions(dev_t devnum) {
fd,
NULL, NULL,
UINT64_MAX,
+ USEC_INFINITY,
DISSECT_IMAGE_GPT_ONLY|
DISSECT_IMAGE_NO_UDEV|
DISSECT_IMAGE_USR_NO_ROOT,