aboutsummaryrefslogtreecommitdiff
path: root/block/backup-top.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2020-05-13 13:05:33 +0200
committerKevin Wolf <kwolf@redhat.com>2020-05-18 19:05:25 +0200
commit25191e5ff0804bbd3b9e9dd86fb538c06710cee2 (patch)
tree19afe692cba8ddc20d3603d3801c04733d12c616 /block/backup-top.c
parentf34ade114818c5a011a743ebd899c91b9ebbe040 (diff)
downloadqemu-25191e5ff0804bbd3b9e9dd86fb538c06710cee2.zip
qemu-25191e5ff0804bbd3b9e9dd86fb538c06710cee2.tar.gz
qemu-25191e5ff0804bbd3b9e9dd86fb538c06710cee2.tar.bz2
block: Make backing files child_of_bds children
Make all parents of backing files pass the appropriate BdrvChildRole. By doing so, we can switch their BdrvChildClass over to the generic child_of_bds, which will do the right thing when given a correct BdrvChildRole. Signed-off-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200513110544.176672-24-mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/backup-top.c')
-rw-r--r--block/backup-top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/backup-top.c b/block/backup-top.c
index e2b4d2a..f059617 100644
--- a/block/backup-top.c
+++ b/block/backup-top.c
@@ -143,7 +143,7 @@ static void backup_top_child_perm(BlockDriverState *bs, BdrvChild *c,
return;
}
- if (child_class == &child_file) {
+ if (!(role & BDRV_CHILD_FILTERED)) {
/*
* Target child
*