summaryrefslogtreecommitdiffstats
path: root/block.c
diff options
context:
space:
mode:
authorMax Reitz2020-05-13 13:05:37 +0200
committerKevin Wolf2020-05-18 19:05:25 +0200
commit58944401d661f22fef15af5a0270ef808a1f4791 (patch)
tree54fd40d68c18fad4f455c4ab42037da1c2610774 /block.c
parentblock: Make filter drivers use child_of_bds (diff)
downloadqemu-58944401d661f22fef15af5a0270ef808a1f4791.tar.gz
qemu-58944401d661f22fef15af5a0270ef808a1f4791.tar.xz
qemu-58944401d661f22fef15af5a0270ef808a1f4791.zip
block: Use child_of_bds in remaining places
Replace child_file by child_of_bds in all remaining places (excluding tests). Signed-off-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200513110544.176672-28-mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block.c b/block.c
index d138a3c261..fb94adcca4 100644
--- a/block.c
+++ b/block.c
@@ -3406,7 +3406,8 @@ static BlockDriverState *bdrv_open_inherit(const char *filename,
BlockDriverState *file_bs;
file_bs = bdrv_open_child_bs(filename, options, "file", bs,
- &child_file, 0, true, &local_err);
+ &child_of_bds, BDRV_CHILD_IMAGE,
+ true, &local_err);
if (local_err) {
goto fail;
}