diff options
| author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-06-10 15:05:30 +0300 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2021-06-29 16:51:00 +0200 |
| commit | e9238278c2272fd3c6a1d339303e3ee2a2e2fbd3 (patch) | |
| tree | 5d2fc967aa45402ce38f39af07f69fbb5fedb215 /hw/net/vhost_net.c | |
| parent | 5b9950193bca788e4f01b98002f326cdd6a21e6c (diff) | |
| download | focaccia-qemu-e9238278c2272fd3c6a1d339303e3ee2a2e2fbd3.tar.gz focaccia-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 'hw/net/vhost_net.c')
0 files changed, 0 insertions, 0 deletions