peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0037-blockdev-do-not-default-cache.no-flush-to-true.patch

298366
From aeab582580fa057dbe646fc3277570af6a8d5ce8 Mon Sep 17 00:00:00 2001
298366
From: Paolo Bonzini <pbonzini@redhat.com>
298366
Date: Thu, 19 Sep 2013 18:48:53 +0200
298366
Subject: [PATCH] blockdev: do not default cache.no-flush to true
298366
298366
That's why all my VMs were so fast lately. :)
298366
298366
This changed in 1.6.0 by mistake in patch 29c4e2b (blockdev: Split up
298366
'cache' option, 2013-07-18).
298366
298366
Cc: qemu-stable@nongnu.org
298366
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
298366
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
298366
(cherry picked from commit 1df6fa4bc6754a170cf511a78e2e6fef84eb5228)
298366
298366
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
298366
---
298366
 blockdev.c | 2 +-
298366
 1 file changed, 1 insertion(+), 1 deletion(-)
298366
298366
diff --git a/blockdev.c b/blockdev.c
298366
index bc7016a..097932c 100644
298366
--- a/blockdev.c
298366
+++ b/blockdev.c
298366
@@ -460,7 +460,7 @@ static DriveInfo *blockdev_init(QemuOpts *all_opts,
298366
     if (qemu_opt_get_bool(opts, "cache.direct", false)) {
298366
         bdrv_flags |= BDRV_O_NOCACHE;
298366
     }
298366
-    if (qemu_opt_get_bool(opts, "cache.no-flush", true)) {
298366
+    if (qemu_opt_get_bool(opts, "cache.no-flush", false)) {
298366
         bdrv_flags |= BDRV_O_NO_FLUSH;
298366
     }
298366