From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdCHq-0001zx-CC for qemu-devel@nongnu.org; Wed, 11 Jul 2018 06:23:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdCHp-0001Vd-Hk for qemu-devel@nongnu.org; Wed, 11 Jul 2018 06:23:54 -0400 Date: Wed, 11 Jul 2018 12:23:44 +0200 From: Kevin Wolf Message-ID: <20180711102344.GD4266@localhost.localdomain> References: <20180711064046.10989-1-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180711064046.10989-1-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] iotests: nbd: Stop qemu-nbd before remaking image List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org, Max Reitz , qemu-block@nongnu.org Am 11.07.2018 um 08:40 hat Fam Zheng geschrieben: > 197 is one example where _make_test_img is used twice without stopping > the NBD server in between. An error will occur like this: > > @@ -26,9 +26,13 @@ > > === Partial final cluster === > > +qemu-img: TEST_DIR/t.IMGFMT: Failed to get "resize" lock > +Is another process using the image? > Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1024 > +Failed to find an available port: Address already in use > read 1024/1024 bytes at offset 0 > > Patch _make_test_img to stop the old qemu-nbd before starting a new one, > which fixes this problem, and similarly 215. > > Signed-off-by: Fam Zheng Thanks, applied to the block branch. Kevin