diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-06-30 13:06:04 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-09 16:06:37 -0500 |
commit | 0aa217e46124e873f75501f7187657e063f5903b (patch) | |
tree | b6d293dd84f7a3bc8eb8a1d9358b1a2f3ccc0a34 /vl.c | |
parent | fc5b81d1f6df7342f0963120b2cf3e919d6fc08a (diff) |
qcow2: Make cache=writethrough default
The performance of qcow2 has improved meanwhile, so we don't need to
special-case it any more. Switch the default to write-through caching
like all other block drivers.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -2239,7 +2239,7 @@ int drive_init(struct drive_opt *arg, int snapshot, void *opaque) unit_id = -1; translation = BIOS_ATA_TRANSLATION_AUTO; index = -1; - cache = 3; + cache = 1; if (machine->use_scsi) { type = IF_SCSI; @@ -2557,8 +2557,6 @@ int drive_init(struct drive_opt *arg, int snapshot, void *opaque) bdrv_flags |= BDRV_O_NOCACHE; else if (cache == 2) /* write-back */ bdrv_flags |= BDRV_O_CACHE_WB; - else if (cache == 3) /* not specified */ - bdrv_flags |= BDRV_O_CACHE_DEF; if (bdrv_open2(bdrv, file, bdrv_flags, drv) < 0) { fprintf(stderr, "qemu: could not open disk image %s\n", file); |