diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-06-06 00:04:52 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-06-15 14:03:43 +0200 |
commit | 425b01487a8072c3b16fa4b3fca30d8ecd06e0ca (patch) | |
tree | 4bc460045ac31c6fd3048c3a839e1d747227fef5 /block.c | |
parent | c4a248a138028bee63a099410c79b428db0c4779 (diff) | |
download | qemu-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.c')
-rw-r--r-- | block.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2380,6 +2380,11 @@ int bdrv_enable_write_cache(BlockDriverState *bs) return bs->enable_write_cache; } +void bdrv_set_enable_write_cache(BlockDriverState *bs, bool wce) +{ + bs->enable_write_cache = wce; +} + int bdrv_is_encrypted(BlockDriverState *bs) { if (bs->backing_hd && bs->backing_hd->encrypted) |