From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52951 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUG54-0007Kz-VN for qemu-devel@nongnu.org; Thu, 01 Jul 2010 05:29:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUG50-00076T-Fi for qemu-devel@nongnu.org; Thu, 01 Jul 2010 05:29:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62215) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUG50-00076L-84 for qemu-devel@nongnu.org; Thu, 01 Jul 2010 05:29:10 -0400 Message-ID: <4C2C5FDC.8050502@redhat.com> Date: Thu, 01 Jul 2010 11:29:00 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1277061995-8101-1-git-send-email-morita.kazutaka@lab.ntt.co.jp> In-Reply-To: <1277061995-8101-1-git-send-email-morita.kazutaka@lab.ntt.co.jp> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] qemu-img: avoid calling exit(1) to release resources properly List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: MORITA Kazutaka Cc: qemu-devel@nongnu.org Am 20.06.2010 21:26, schrieb MORITA Kazutaka: > This patch removes exit(1) from error(), and properly releases > resources such as a block driver and an allocated memory. > > For testing the Sheepdog block driver with qemu-iotests, it is > necessary to call bdrv_delete() before the program exits. Because the > driver releases the lock of VM images in the close handler. > > Signed-off-by: MORITA Kazutaka Thanks, applied to the block branch. Kevin