block: Make backing files child_of_bds children
commit25191e5ff0804bbd3b9e9dd86fb538c06710cee2
authorMax Reitz <mreitz@redhat.com>
Wed, 13 May 2020 11:05:33 +0000 (13 13:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (18 19:05 +0200)
tree19afe692cba8ddc20d3603d3801c04733d12c616
parentf34ade114818c5a011a743ebd899c91b9ebbe040
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>
block.c
block/backup-top.c
block/vvfat.c
tests/test-bdrv-drain.c