iotests: Add test for multiple BB on BDS tree
authorMax Reitz <mreitz@redhat.com>
Fri, 29 Jan 2016 15:36:15 +0000 (16:36 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 2 Feb 2016 16:50:46 +0000 (17:50 +0100)
commit15a2b18fe5824388debe958e21c5dfa51457c7b6
tree914fc457a30619638f9950511aa647f327eb2322
parentca9bd24cf1d53775169ba9adc17e265554d1afed
iotests: Add test for multiple BB on BDS tree

This adds a test for having multiple BlockBackends in one BDS tree. In
this case, there is one BB for the protocol BDS and one BB for the
format BDS in a simple two-BDS tree (with the protocol BDS and BB added
first).

When bdrv_close_all() is executed, no cached data from any BDS should be
lost; the protocol BDS may not be closed until the format BDS is closed.
Otherwise, metadata updates may be lost.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/117 [new file with mode: 0755]
tests/qemu-iotests/117.out [new file with mode: 0644]
tests/qemu-iotests/group