From: Kevin Wolf Date: Mon, 10 Jan 2011 11:33:02 +0000 (+0100) Subject: qemu-img snapshot: Use writeback caching X-Git-Tag: v0.14.0-rc0~83^2~21 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=710da702beb0dc4aeeab1b9e712cd9473b083a89;p=users%2Fdwmw2%2Fqemu.git qemu-img snapshot: Use writeback caching 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 --- diff --git a/qemu-img.c b/qemu-img.c index afd9ed2e0e..1e65ea82d6 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");