diff options
| author | Max Reitz | 2020-04-29 16:11:26 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2020-05-18 19:05:25 +0200 |
| commit | 2d97fde43991829f74e1e258bb82031605bf9bca (patch) | |
| tree | 49987a318be3fbebcdcd0a2726cec8d2c7ac41d1 /include | |
| parent | block: Add blk_make_empty() (diff) | |
| download | qemu-2d97fde43991829f74e1e258bb82031605bf9bca.tar.gz qemu-2d97fde43991829f74e1e258bb82031605bf9bca.tar.xz qemu-2d97fde43991829f74e1e258bb82031605bf9bca.zip | |
block: Use blk_make_empty() after commits
bdrv_commit() already has a BlockBackend pointing to the BDS that we
want to empty, it just has the wrong permissions.
qemu-img commit has no BlockBackend pointing to the old backing file
yet, but introducing one is simple.
After this commit, bdrv_make_empty() is the only remaining caller of
BlockDriver.bdrv_make_empty().
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200429141126.85159-5-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[kwolf: Fixed up reference output for 098]
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
