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 <mre...@redhat.com> --- block/block-backend.c | 5 +++++ include/sysemu/block-backend.h | 1 + 2 files changed, 6 insertions(+) diff --git a/block/block-backend.c b/block/block-backend.c index 45d4057..62cff17 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -1347,3 +1347,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 3fbf822..8027671 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -128,6 +128,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, -- 2.7.1