summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2021-06-10 14:05:30 +0200
committerKevin Wolf2021-06-29 16:51:00 +0200
commite9238278c2272fd3c6a1d339303e3ee2a2e2fbd3 (patch)
tree5d2fc967aa45402ce38f39af07f69fbb5fedb215 /tests/unit
parentblock: introduce bdrv_remove_file_or_backing_child() (diff)
downloadqemu-e9238278c2272fd3c6a1d339303e3ee2a2e2fbd3.tar.gz
qemu-e9238278c2272fd3c6a1d339303e3ee2a2e2fbd3.tar.xz
qemu-e9238278c2272fd3c6a1d339303e3ee2a2e2fbd3.zip
block: introduce bdrv_set_file_or_backing_noperm()
To be used for reopen in future commit. Notes: - It seems OK to update inherits_from if new bs is recursively inherits from parent bs. Let's just not check for backing_chain_contains, to support file child of non-filters. - Simply check child->frozen instead of bdrv_is_backing_chain_frozen(), as we really interested only in this one child. - Role determination of new child is a bit more complex: it remains the same for backing child, it's obvious for filter driver. But for non-filter file child let's for now restrict to only replacing existing child (and keeping its role). Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20210610120537.196183-3-vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/unit')
0 files changed, 0 insertions, 0 deletions