Re: [PATCH 1/1] grub-fs-tester: fix losetup race

2018-06-20 Thread Will Thompson
On Wed, 20 Jun 2018 at 10:33 Daniel Kiper wrote: > On Fri, Jun 15, 2018 at 06:34:04PM +0100, Will Thompson wrote: > > If something else on the system is using loopback devices, then the > > device that's free at the call to `losetup -f` may not be free in the > > following call to try to use it.

Re: [PATCH 1/1] grub-fs-tester: fix losetup race

2018-06-20 Thread Daniel Kiper
On Fri, Jun 15, 2018 at 06:34:04PM +0100, Will Thompson wrote: > If something else on the system is using loopback devices, then the > device that's free at the call to `losetup -f` may not be free in the > following call to try to use it. Instead, find and use the first free > loopback device in a

[PATCH 1/1] grub-fs-tester: fix losetup race

2018-06-15 Thread Will Thompson
If something else on the system is using loopback devices, then the device that's free at the call to `losetup -f` may not be free in the following call to try to use it. Instead, find and use the first free loopback device in a single call to losetup. --- tests/util/grub-fs-tester.in | 3 +-- 1 f