From: Max Reitz Date: Wed, 16 Mar 2016 18:54:31 +0000 (+0100) Subject: block: Add blk_commit_all() X-Git-Tag: TizenStudio_2.0_p2.4~27^2~6^2~8^2~103^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1393f21270d707dfe0af3206b8757887c7b5c1ec;p=sdk%2Femulator%2Fqemu.git block: Add blk_commit_all() Later, we will remove bdrv_commit_all() and move its contents here, and in order to replace bdrv_commit_all() calls by calls to blk_commit_all() before doing so, we need to add it as an alias now. Signed-off-by: Max Reitz Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- diff --git a/block/block-backend.c b/block/block-backend.c index 7a04e10..e75b8fe 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -1329,3 +1329,8 @@ BlockBackendRootState *blk_get_root_state(BlockBackend *blk) { return &blk->root_state; } + +int blk_commit_all(void) +{ + return bdrv_commit_all(); +} diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 00d69ba..84612ce 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -127,6 +127,7 @@ int blk_co_discard(BlockBackend *blk, int64_t sector_num, int nb_sectors); int blk_co_flush(BlockBackend *blk); int blk_flush(BlockBackend *blk); int blk_flush_all(void); +int blk_commit_all(void); void blk_drain(BlockBackend *blk); void blk_drain_all(void); void blk_set_on_error(BlockBackend *blk, BlockdevOnError on_read_error,