From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYfZM-0007i7-7x for qemu-devel@nongnu.org; Thu, 19 Mar 2015 14:53:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYfZL-0002IQ-Gw for qemu-devel@nongnu.org; Thu, 19 Mar 2015 14:53:24 -0400 From: Max Reitz Date: Thu, 19 Mar 2015 14:53:15 -0400 Message-Id: <1426791197-7793-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] block: driver should override flags in bdrv_open() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi , Max Reitz 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 -- 2.1.0