On Thu, Mar 19, 2015 at 6:53 PM, Max Reitz <mre...@redhat.com> wrote: > BDRV_O_PROTOCOL is an internal qemu flag which a user should be able to > override by explicitly specifying a block driver. This series implements > this and adds two iotests (one for NBD, one for file) to test it. > > > v2 (rebase on current master): > - Patch 1: Conflict in iotest 051's reference output (in a line that is > removed by this patch anyway) > > > git-backport-diff against v1: > > Key: > [----] : patches are identical > [####] : number of functional differences between upstream/downstream patch > [down] : patch is downstream-only > The flags [FC] indicate (F)unctional and (C)ontextual differences, > respectively > > 001/2:[0002] [FC] 'block: driver should override flags in bdrv_open()' > 002/2:[----] [-C] 'iotests: Add tests for overriding BDRV_O_PROTOCOL' > > > Max Reitz (2): > block: driver should override flags in bdrv_open() > iotests: Add tests for overriding BDRV_O_PROTOCOL > > block.c | 49 +++++++++++++++++++++------------- > tests/qemu-iotests/051 | 1 - > tests/qemu-iotests/051.out | 3 --- > tests/qemu-iotests/119 | 60 ++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/119.out | 11 ++++++++ > tests/qemu-iotests/120 | 65 > ++++++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/120.out | 15 +++++++++++ > tests/qemu-iotests/group | 2 ++ > 8 files changed, 184 insertions(+), 22 deletions(-) > create mode 100755 tests/qemu-iotests/119 > create mode 100644 tests/qemu-iotests/119.out > create mode 100755 tests/qemu-iotests/120 > create mode 100644 tests/qemu-iotests/120.out
Please resend and CC Kevin (for qemu-iotests and block.c). Stefan