aboutsummaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2009-06-30 13:06:04 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-09 16:06:37 -0500
commit0aa217e46124e873f75501f7187657e063f5903b (patch)
treeb6d293dd84f7a3bc8eb8a1d9358b1a2f3ccc0a34 /block.h
parentfc5b81d1f6df7342f0963120b2cf3e919d6fc08a (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 'block.h')
-rw-r--r--block.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/block.h b/block.h
index b595772c3c..ca5bfff144 100644
--- a/block.h
+++ b/block.h
@@ -37,9 +37,8 @@ typedef struct QEMUSnapshotInfo {
bdrv_file_open()) */
#define BDRV_O_NOCACHE 0x0020 /* do not use the host page cache */
#define BDRV_O_CACHE_WB 0x0040 /* use write-back caching */
-#define BDRV_O_CACHE_DEF 0x0080 /* use default caching */
-#define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_CACHE_DEF)
+#define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_CACHE_WB)
void bdrv_info(Monitor *mon);
void bdrv_info_stats(Monitor *mon);