diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-05-30 00:20:30 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-05-30 13:41:56 +0200 |
commit | afbe20b7d4ed4c3aebbd1b3de00b9b7385dd0ae8 (patch) | |
tree | 69b2a6e23bef2603b653e02988ae76c6c8296c25 /src/core | |
parent | Merge pull request #27842 from keszybz/man-page-links (diff) | |
download | systemd-afbe20b7d4ed4c3aebbd1b3de00b9b7385dd0ae8.tar.xz systemd-afbe20b7d4ed4c3aebbd1b3de00b9b7385dd0ae8.zip |
shared/loop-util: use longer delay when waiting for loop device
The kernel may be syncing a file system or doing something else that requires
more time. So make the delay a bit longer, but provide some feedback and also
grow the delay exponentially (though with a long exponent). If the kernel is
doing something else, no need to repeat so often. With 38 attempts, we get a
total of slightly above 5000 ms.
I wrote this when I thought that the the delay is not long enough. It turned
out that we were blocking the file system on the loop device, so waiting longer
wasn't helpful. But I think it's nicer to do it this way anyway.
Diffstat (limited to 'src/core')
0 files changed, 0 insertions, 0 deletions