diff options
author | Kevin Wolf <kwolf@redhat.com> | 2015-10-28 13:24:26 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-12-18 14:34:42 +0100 |
commit | 40365552c2fceacc9800ec9a87b9ead516a9a6ce (patch) | |
tree | 44e5bcbc633d6a7c167f2056169c1be902c6eade /block.c | |
parent | cddff5bae1c8e0e21a5e6da04eff1d0a4423e5f3 (diff) |
mirror: Error out when a BDS would get two BBs
bdrv_replace_in_backing_chain() asserts that not both old and new
BlockDdriverState have a BlockBackend attached to them because both
would have to end up pointing to the new BDS and we don't support more
than one BB per BDS yet.
Before we can safely allow references to existing nodes as backing
files, we need to make sure that even if a backing file has a BB on it,
this doesn't crash qemu.
There are probably also some cases with the 'replaces' option set where
drive-mirror could fail this assertion today. They are fixed with this
error check as well.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions