diff options
-rw-r--r-- | block/block-backend.c | 5 | ||||
-rw-r--r-- | include/sysemu/block-backend.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/block/block-backend.c b/block/block-backend.c index 7a04e10a01..e75b8febb0 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 00d69baa07..84612cefc8 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, |