From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60415 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhTfH-0000nz-4Q for qemu-devel@nongnu.org; Mon, 24 Jan 2011 16:09:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhTfE-0007JX-AO for qemu-devel@nongnu.org; Mon, 24 Jan 2011 16:09:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:65252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhTfE-0007JK-0S for qemu-devel@nongnu.org; Mon, 24 Jan 2011 16:09:28 -0500 From: Kevin Wolf Date: Mon, 24 Jan 2011 22:10:31 +0100 Message-Id: <1295903452-18017-3-git-send-email-kwolf@redhat.com> In-Reply-To: <1295903452-18017-1-git-send-email-kwolf@redhat.com> References: <1295903452-18017-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 02/23] qemu-img snapshot: Use writeback caching List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org None of the other qemu-img subcommands uses writethrough, and there's no reason why snapshot should be special. Signed-off-by: Kevin Wolf Reviewed-by: Stefan Hajnoczi --- qemu-img.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index afd9ed2..1e65ea8 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -1068,7 +1068,7 @@ static int img_snapshot(int argc, char **argv) int action = 0; qemu_timeval tv; - bdrv_oflags = BDRV_O_RDWR; + bdrv_oflags = BDRV_O_FLAGS | BDRV_O_RDWR; /* Parse commandline parameters */ for(;;) { c = getopt(argc, argv, "la:c:d:h"); -- 1.7.2.3