From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIKTu-0003NE-6d for qemu-devel@nongnu.org; Mon, 02 Feb 2015 12:08:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIKTr-0002Ri-2k for qemu-devel@nongnu.org; Mon, 02 Feb 2015 12:08:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIKTq-0002Rb-Nn for qemu-devel@nongnu.org; Mon, 02 Feb 2015 12:08:11 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t12H88Bi012240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 2 Feb 2015 12:08:08 -0500 From: Max Reitz Date: Mon, 2 Feb 2015 12:08:04 -0500 Message-Id: <1422896886-12878-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] block: driver should override flags in bdrv_open() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , 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. For the NBD test to succeed, this series relies on "iotests: Specify format for qemu-nbd". Also, the second patch's "group" file modifying hunk relies on "qemu-iotests: add 116 invalid QED input file tests". 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