]> Git Repo - qemu.git/commitdiff
block: Add blk_commit_all()
authorMax Reitz <[email protected]>
Wed, 16 Mar 2016 18:54:31 +0000 (19:54 +0100)
committerKevin Wolf <[email protected]>
Thu, 17 Mar 2016 14:47:56 +0000 (15:47 +0100)
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 <[email protected]>
Reviewed-by: Kevin Wolf <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/block-backend.c
include/sysemu/block-backend.h

index 7a04e10a0155e6a91893e593426631ab6e70fcbb..e75b8febb0f6ee8d9c343ca8c5bb7b440a66a2c6 100644 (file)
@@ -1329,3 +1329,8 @@ BlockBackendRootState *blk_get_root_state(BlockBackend *blk)
 {
     return &blk->root_state;
 }
+
+int blk_commit_all(void)
+{
+    return bdrv_commit_all();
+}
index 00d69baa079df64495d974897f0a51f9b358b2d0..84612cefc8145dd0fa8c1bd015cf63f43e206c4a 100644 (file)
@@ -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,
This page took 0.029278 seconds and 4 git commands to generate.