]> Git Repo - qemu.git/commitdiff
qemu-img snapshot: Use writeback caching
authorKevin Wolf <[email protected]>
Mon, 10 Jan 2011 11:33:02 +0000 (12:33 +0100)
committerKevin Wolf <[email protected]>
Mon, 24 Jan 2011 10:08:50 +0000 (11:08 +0100)
None of the other qemu-img subcommands uses writethrough, and there's no reason
why snapshot should be special.

Signed-off-by: Kevin Wolf <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
qemu-img.c

index afd9ed2e0ece60c22dbf025c4702365c9635687a..1e65ea82d61406b5a2bd82778343400fd1df96ec 100644 (file)
@@ -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");
This page took 0.028756 seconds and 4 git commands to generate.