Commit Graph

2 Commits

Author SHA1 Message Date
Miloslav Trmač f4597cfee5 Use range iterations
... for the trivial cases where the loop body does not reference
the iteration variable at all.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-09-05 18:56:35 +02:00
Giuseppe Scrivano 01c633e609
loopback: fix race condition opening loopback device
the loopback device file could be already used/removed by another
process.  Since the process is inherently racy, just grab the next
available index and try again until it succeeds.

Closes: https://github.com/containers/storage/issues/2038

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-07-23 19:43:19 +02:00