cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-blockdev-do-not-default-cache.no-flush-to-true.patch

9ae3a8
From ae3974ef64713d94dcb2766e3d8f89edc1a01c0c Mon Sep 17 00:00:00 2001
9ae3a8
From: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
Date: Mon, 23 Sep 2013 17:08:01 +0200
9ae3a8
Subject: [PATCH 03/29] blockdev: do not default cache.no-flush to true
9ae3a8
9ae3a8
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
Message-id: <1379956082-3646-2-git-send-email-pbonzini@redhat.com>
9ae3a8
Patchwork-id: 54491
9ae3a8
O-Subject: [RHEL 7.0 qemu-kvm PATCH 1/2] blockdev: do not default cache.no-flush to true
9ae3a8
Bugzilla: 1009993
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
RH-Acked-by: Fam Zheng <famz@redhat.com>
9ae3a8
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
9ae3a8
That's why all my VMs were so fast lately. :)
9ae3a8
9ae3a8
This changed in 1.6.0 by mistake in patch 29c4e2b (blockdev: Split up
9ae3a8
'cache' option, 2013-07-18).
9ae3a8
9ae3a8
Cc: qemu-stable@nongnu.org
9ae3a8
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
(cherry picked from commit 1df6fa4bc6754a170cf511a78e2e6fef84eb5228)
9ae3a8
---
9ae3a8
 blockdev.c | 2 +-
9ae3a8
 1 file changed, 1 insertion(+), 1 deletion(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 blockdev.c |    2 +-
9ae3a8
 1 files changed, 1 insertions(+), 1 deletions(-)
9ae3a8
9ae3a8
diff --git a/blockdev.c b/blockdev.c
9ae3a8
index 8ffed03..073f553 100644
9ae3a8
--- a/blockdev.c
9ae3a8
+++ b/blockdev.c
9ae3a8
@@ -459,7 +459,7 @@ static DriveInfo *blockdev_init(QemuOpts *all_opts,
9ae3a8
     if (qemu_opt_get_bool(opts, "cache.direct", false)) {
9ae3a8
         bdrv_flags |= BDRV_O_NOCACHE;
9ae3a8
     }
9ae3a8
-    if (qemu_opt_get_bool(opts, "cache.no-flush", true)) {
9ae3a8
+    if (qemu_opt_get_bool(opts, "cache.no-flush", false)) {
9ae3a8
         bdrv_flags |= BDRV_O_NO_FLUSH;
9ae3a8
     }
9ae3a8
 
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8