Searched hist:e9238278c2272fd3c6a1d339303e3ee2a2e2fbd3 (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff e9238278c2272fd3c6a1d339303e3ee2a2e2fbd3 Thu Jun 10 07:05:30 CDT 2021 Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> 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>
|