diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-08-31 15:08:03 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-09-13 14:33:58 +0200 |
commit | 5a0d460c350c58362651458824618cf6b3de3710 (patch) | |
tree | 0e0c4707b1320d60a835432e39370777b537a10d | |
parent | qemu-img convert: Use cache=unsafe for output image (diff) | |
download | qemu-kvm-5a0d460c350c58362651458824618cf6b3de3710.tar.gz qemu-kvm-5a0d460c350c58362651458824618cf6b3de3710.tar.bz2 qemu-kvm-5a0d460c350c58362651458824618cf6b3de3710.zip |
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>
(cherry picked from commit ceb25e5c7554255931f7f5647d3ad9df36111f53)
-rw-r--r-- | block.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |