blockdev: do not default cache.no-flush to true
That's why all my VMs were so fast lately. :) This changed in 1.6.0 by mistake in patch29c4e2b
(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> (cherry picked from commit1df6fa4bc6
) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
5c20c1ffe7
commit
aeab582580
|
@ -460,7 +460,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue