From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c19p4-0000Ab-HD for qemu-devel@nongnu.org; Mon, 31 Oct 2016 06:28:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c19p3-0006sG-KV for qemu-devel@nongnu.org; Mon, 31 Oct 2016 06:28:10 -0400 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= Date: Mon, 31 Oct 2016 11:27:39 +0100 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v8 0/2] Add 'offset' and 'size' options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Tom=C3=A1=C5=A1=20Golembiovsk=C3=BD?= , Kevin Wolf , Max Reitz , Markus Armbruster , Eric Blake , "Daniel P . Berrange" , qemu-block@nongnu.org v7 -> v8: - handling offset in raw_co_pwrite_zeroes and raw_co_pdiscard (+tests) - offset and size are not allowed for SCSI generic devices - raw_aio_ioctl: not allowed when offset or size is set - raw_probe_blocksizes: return -ENOTSUP if offset is not multiple of bloc= k size - raw_probe_geometry: return -ENOTSUP if offset or size is set v6 -> v7: - added tests v5 -> v6: - fix alignment check condition - when size is not specified and device size is being used take offset into account v4 -> v5: - added two missing overflow checks - comments from Eric Blake: - renamed 'fail' label to 'end' - fixed optional fields in JSON scheme - no punctuation at the end of error_setg() message - spaces around PRI* macros - using QEMU_IS_ALIGNED - typos v3 -> v4: - fix stupid compilation error and formatting issue v2 -> v3: - changed overflow check to make it clearer - produce error instead of warning when size is not multiple of sector size v1 -> v2: - options were moved from 'file' driver into 'raw' driver as suggested - added support for writing, reopen and truncate when possible Tom=C3=A1=C5=A1 Golembiovsk=C3=BD (2): raw_bsd: add offset and size options qemu-iotests: test 'offset' and 'size' options in raw driver block/raw_bsd.c | 217 ++++++++++++++++++++++++++++++- qapi/block-core.json | 16 ++- tests/qemu-iotests/171 | 212 ++++++++++++++++++++++++++++++ tests/qemu-iotests/171.out | 313 +++++++++++++++++++++++++++++++++++++++= ++++++ tests/qemu-iotests/group | 1 + 5 files changed, 755 insertions(+), 4 deletions(-) create mode 100755 tests/qemu-iotests/171 create mode 100644 tests/qemu-iotests/171.out --=20 2.10.1