Received: from list by lists.gnu.org with archive (Exim 4.71) id 1fVZVB-0004Rp-WC for mharc-grub-devel@gnu.org; Wed, 20 Jun 2018 05:34:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVZV8-0004RT-28 for grub-devel@gnu.org; Wed, 20 Jun 2018 05:34:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVZV4-0007NL-6E for grub-devel@gnu.org; Wed, 20 Jun 2018 05:34:06 -0400 Received: from boksu.net-space.pl ([185.15.1.105]:33480) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1fVZV3-0007MF-Lh for grub-devel@gnu.org; Wed, 20 Jun 2018 05:34:02 -0400 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@boksu.net-space.pl)) by router-fw-old.local.net-space.pl id S1845455AbeFTJd4 (ORCPT ); Wed, 20 Jun 2018 11:33:56 +0200 Date: Wed, 20 Jun 2018 11:33:56 +0200 From: Daniel Kiper To: The development of GNU GRUB Cc: Will Thompson Subject: Re: [PATCH 1/1] grub-fs-tester: fix losetup race Message-ID: <20180620093356.GA4455@router-fw-old.local.net-space.pl> References: <20180615173404.8994-1-wjt@endlessm.com> <20180615173404.8994-2-wjt@endlessm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180615173404.8994-2-wjt@endlessm.com> User-Agent: Mutt/1.3.28i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.15.1.105 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2018 09:34:07 -0000 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 single call to losetup. In general LGTM except lack of SOB. I can add it (Signed-off-by: Will Thompson ) before committing if you are OK with that. Next time please do not forget about that. Daniel