summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf2016-03-14 11:40:23 +0100
committerKevin Wolf2016-03-30 12:16:00 +0200
commitbaf5602ed92628067990abfa7a873f51586a4dc1 (patch)
treebc7326f58f367dc7c8675270351e2ad7af904fd7 /include/block
parentreplay: introduce block devices record/replay (diff)
downloadqemu-baf5602ed92628067990abfa7a873f51586a4dc1.tar.gz
qemu-baf5602ed92628067990abfa7a873f51586a4dc1.tar.xz
qemu-baf5602ed92628067990abfa7a873f51586a4dc1.zip
block: Add bdrv_parse_cache_mode()
It's like bdrv_parse_cache_flags(), except that writethrough mode isn't included in the flags, but returned as a separate bool. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h
index b4b4650fd3..4fd6c050f0 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -208,6 +208,7 @@ void bdrv_replace_in_backing_chain(BlockDriverState *old,
BlockDriverState *new);
int bdrv_parse_cache_flags(const char *mode, int *flags);
+int bdrv_parse_cache_mode(const char *mode, int *flags, bool *writethrough);
int bdrv_parse_discard_flags(const char *mode, int *flags);
BdrvChild *bdrv_open_child(const char *filename,
QDict *options, const char *bdref_key,