blockdev: do not default cache.no-flush to true
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Sep 2013 16:48:53 +0000 (18:48 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 20 Sep 2013 17:27:44 +0000 (19:27 +0200)
That's why all my VMs were so fast lately. :)

This changed in 1.6.0 by mistake in patch 29c4e2b (blockdev: Split up
'cache' option, 2013-07-18).

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c

index 80605a2bac38be4fc90ed3d449af53168d3a39ec..8aa66a949c458a73b98b06e07e4ba471cf940f87 100644 (file)
@@ -443,7 +443,7 @@ static DriveInfo *blockdev_init(QemuOpts *all_opts,
     if (qemu_opt_get_bool(opts, "cache.direct", false)) {
         bdrv_flags |= BDRV_O_NOCACHE;
     }
-    if (qemu_opt_get_bool(opts, "cache.no-flush", true)) {
+    if (qemu_opt_get_bool(opts, "cache.no-flush", false)) {
         bdrv_flags |= BDRV_O_NO_FLUSH;
     }