From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46942 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqPJD-0007jg-Sl for qemu-devel@nongnu.org; Tue, 31 Aug 2010 07:47:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqPJB-00051A-JQ for qemu-devel@nongnu.org; Tue, 31 Aug 2010 07:47:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31792) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqPJB-000515-DB for qemu-devel@nongnu.org; Tue, 31 Aug 2010 07:47:21 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7VBlK20031708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 31 Aug 2010 07:47:20 -0400 From: Kevin Wolf Date: Tue, 31 Aug 2010 13:47:32 +0200 Message-Id: <1283255252-25835-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH] qemu-img convert: Use cache=unsafe for output image List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com If qemu-img crashes during the conversion, the user will throw away the broken output file anyway and start over. So no need to be too cautious. Signed-off-by: Kevin Wolf --- qemu-img.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index d2a978b..4e035e4 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -783,7 +783,8 @@ static int img_convert(int argc, char **argv) goto out; } - out_bs = bdrv_new_open(out_filename, out_fmt, BDRV_O_FLAGS | BDRV_O_RDWR); + out_bs = bdrv_new_open(out_filename, out_fmt, + BDRV_O_FLAGS | BDRV_O_RDWR | BDRV_O_NO_FLUSH); if (!out_bs) { ret = -1; goto out; -- 1.7.2.2