aboutsummaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-08-31 15:08:03 +0200
committerKevin Wolf <kwolf@redhat.com>2010-09-08 12:39:22 +0200
commitceb25e5c7554255931f7f5647d3ad9df36111f53 (patch)
tree2571803e53c98d221a7201d7af9745a450e17483 /block.h
parent1bd8e175580a87c7b9e6791faca7626f9bc3ceeb (diff)
downloadqemu-ceb25e5c7554255931f7f5647d3ad9df36111f53.zip
qemu-ceb25e5c7554255931f7f5647d3ad9df36111f53.tar.gz
qemu-ceb25e5c7554255931f7f5647d3ad9df36111f53.tar.bz2
block: Fix BDRV_O_CACHE_MASK
BDRV_O_CACHE_MASK should have been extended when cache=unsafe introduced a new flag BDRV_O_NO_FLUSH. There are currently no users that would change their behaviour because of this, but let's clean it up before things break. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r--block.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.h b/block.h
index db131a3..5f64380 100644
--- a/block.h
+++ b/block.h
@@ -35,7 +35,7 @@ typedef struct QEMUSnapshotInfo {
#define BDRV_O_NO_BACKING 0x0100 /* don't open the backing file */
#define BDRV_O_NO_FLUSH 0x0200 /* disable flushing on this disk */
-#define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_CACHE_WB)
+#define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NO_FLUSH)
#define BDRV_SECTOR_BITS 9
#define BDRV_SECTOR_SIZE (1ULL << BDRV_SECTOR_BITS)