summaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-06-06 00:04:52 +0200
committerKevin Wolf <kwolf@redhat.com>2012-06-15 14:03:43 +0200
commit425b01487a8072c3b16fa4b3fca30d8ecd06e0ca (patch)
tree4bc460045ac31c6fd3048c3a839e1d747227fef5 /block.h
parentc4a248a138028bee63a099410c79b428db0c4779 (diff)
downloadqemu-425b01487a8072c3b16fa4b3fca30d8ecd06e0ca.tar.gz
qemu-425b01487a8072c3b16fa4b3fca30d8ecd06e0ca.tar.bz2
qemu-425b01487a8072c3b16fa4b3fca30d8ecd06e0ca.zip
block: add bdrv_set_enable_write_cache
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r--block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block.h b/block.h
index 574981d312..43bfd998eb 100644
--- a/block.h
+++ b/block.h
@@ -291,6 +291,7 @@ BlockErrorAction bdrv_get_on_error(BlockDriverState *bs, int is_read);
int bdrv_is_read_only(BlockDriverState *bs);
int bdrv_is_sg(BlockDriverState *bs);
int bdrv_enable_write_cache(BlockDriverState *bs);
+void bdrv_set_enable_write_cache(BlockDriverState *bs, bool wce);
int bdrv_is_inserted(BlockDriverState *bs);
int bdrv_media_changed(BlockDriverState *bs);
void bdrv_lock_medium(BlockDriverState *bs, bool locked);