]> git.proxmox.com Git - mirror_qemu.git/commit
block: move supports_backing check to bdrv_set_file_or_backing_noperm()
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 10 Jun 2021 12:05:34 +0000 (15:05 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 29 Jun 2021 14:51:00 +0000 (16:51 +0200)
commit25f78d9e2de528473d52acfcf7acdfb64e3453d4
tree5b18569841ab6c46634f2c9a2411db53bda8c85c
parentcbfdb98ce21532e6705fdbf324583f99602e183a
block: move supports_backing check to bdrv_set_file_or_backing_noperm()

Move supports_backing check of bdrv_reopen_parse_backing to called
(through bdrv_set_backing_noperm()) bdrv_set_file_or_backing_noperm()
function. The check applies to general case, so it's appropriate for
bdrv_set_file_or_backing_noperm().

We have to declare backing support for two test drivers, otherwise new
check fails.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210610120537.196183-7-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
tests/unit/test-bdrv-drain.c
tests/unit/test-bdrv-graph-mod.c