block: Add bdrv_parse_cache_mode()
commitbaf5602ed92628067990abfa7a873f51586a4dc1
authorKevin Wolf <kwolf@redhat.com>
Mon, 14 Mar 2016 10:40:23 +0000 (14 11:40 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Mar 2016 10:16:00 +0000 (30 12:16 +0200)
treebc7326f58f367dc7c8675270351e2ad7af904fd7
parent63785678f3941c84be01d3ab7867e2742ea9fe3e
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>
block.c
include/block/block.h