diff options
author | Max Reitz <mreitz@redhat.com> | 2020-04-29 16:11:25 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2020-05-18 19:05:25 +0200 |
commit | 2b7bbdbdefe203cf8468c61b4217e578981d6fce (patch) | |
tree | 66084f4d906895e6cdf67bc9c7a10ef7e4520b9d /include/sysemu | |
parent | 6f7a3b535f0d48d138e43cadf13323f083bfb547 (diff) | |
download | qemu-2b7bbdbdefe203cf8468c61b4217e578981d6fce.zip qemu-2b7bbdbdefe203cf8468c61b4217e578981d6fce.tar.gz qemu-2b7bbdbdefe203cf8468c61b4217e578981d6fce.tar.bz2 |
block: Add blk_make_empty()
Two callers of BlockDriver.bdrv_make_empty() remain that should not call
this method directly. Both do not have access to a BdrvChild, but they
can use a BlockBackend, so we add this function that lets them use it.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200429141126.85159-4-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/block-backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 0917663..8203d7f 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -266,4 +266,6 @@ int coroutine_fn blk_co_copy_range(BlockBackend *blk_in, int64_t off_in, const BdrvChild *blk_root(BlockBackend *blk); +int blk_make_empty(BlockBackend *blk, Error **errp); + #endif |