block: Add blk_make_empty()
commit2b7bbdbdefe203cf8468c61b4217e578981d6fce
authorMax Reitz <mreitz@redhat.com>
Wed, 29 Apr 2020 14:11:25 +0000 (29 16:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (18 19:05 +0200)
tree66084f4d906895e6cdf67bc9c7a10ef7e4520b9d
parent6f7a3b535f0d48d138e43cadf13323f083bfb547
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>
block/block-backend.c
include/sysemu/block-backend.h