get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/810196/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 810196,
    "url": "http://patchwork.ozlabs.org/api/patches/810196/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170905151614.31303-3-cohuck@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170905151614.31303-3-cohuck@redhat.com>",
    "list_archive_url": null,
    "date": "2017-09-05T15:16:13",
    "name": "[2/3] iotests: use -ccw on s390x for 051",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b7873f2558d63e7ff52f092f0af075ef9299b8d9",
    "submitter": {
        "id": 71914,
        "url": "http://patchwork.ozlabs.org/api/people/71914/?format=api",
        "name": "Cornelia Huck",
        "email": "cohuck@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170905151614.31303-3-cohuck@redhat.com/mbox/",
    "series": [
        {
            "id": 1596,
            "url": "http://patchwork.ozlabs.org/api/series/1596/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=1596",
            "date": "2017-09-05T15:16:11",
            "name": "iotests: cure s390x failures by switching to ccw",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1596/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/810196/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/810196/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
            "ext-mx03.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com",
            "ext-mx03.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=cohuck@redhat.com"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xmr1X6YYpz9s7c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  6 Sep 2017 01:17:36 +1000 (AEST)",
            "from localhost ([::1]:59594 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dpFba-0008QQ-WC\n\tfor incoming@patchwork.ozlabs.org; Tue, 05 Sep 2017 11:17:35 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:43016)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <cohuck@redhat.com>) id 1dpFar-0008Ht-9P\n\tfor qemu-devel@nongnu.org; Tue, 05 Sep 2017 11:16:56 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <cohuck@redhat.com>) id 1dpFah-0002sc-Rr\n\tfor qemu-devel@nongnu.org; Tue, 05 Sep 2017 11:16:49 -0400",
            "from mx1.redhat.com ([209.132.183.28]:58832)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <cohuck@redhat.com>)\n\tid 1dpFaR-0002i3-Fk; Tue, 05 Sep 2017 11:16:23 -0400",
            "from smtp.corp.redhat.com\n\t(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 95732171DCA;\n\tTue,  5 Sep 2017 15:16:22 +0000 (UTC)",
            "from localhost (dhcp-192-215.str.redhat.com [10.33.192.215])\n\tby smtp.corp.redhat.com (Postfix) with ESMTPS id E7AB27FFC2;\n\tTue,  5 Sep 2017 15:16:21 +0000 (UTC)"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 95732171DCA",
        "From": "Cornelia Huck <cohuck@redhat.com>",
        "To": "kwolf@redhat.com,\n\tmreitz@redhat.com",
        "Date": "Tue,  5 Sep 2017 17:16:13 +0200",
        "Message-Id": "<20170905151614.31303-3-cohuck@redhat.com>",
        "In-Reply-To": "<20170905151614.31303-1-cohuck@redhat.com>",
        "References": "<20170905151614.31303-1-cohuck@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.13",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.27]);\n\tTue, 05 Sep 2017 15:16:22 +0000 (UTC)",
        "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]",
        "X-Received-From": "209.132.183.28",
        "Subject": "[Qemu-devel] [PATCH 2/3] iotests: use -ccw on s390x for 051",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "thuth@redhat.com, haoqf@linux.vnet.ibm.com, qemu-block@nongnu.org,\n\tdavid@redhat.com, Cornelia Huck <cohuck@redhat.com>,\n\tqemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "The default cpu model on s390x does not provide zPCI, which is\nnot yet wired up on tcg. Moreover, virtio-ccw is the standard\non s390x, so use the -ccw instead of the -pci versions of virtio\ndevices on s390x.\n\nProvide an output file for s390x.\n\nSigned-off-by: Cornelia Huck <cohuck@redhat.com>\n---\n tests/qemu-iotests/051                     |   9 +-\n tests/qemu-iotests/051.s390-ccw-virtio.out | 434 +++++++++++++++++++++++++++++\n 2 files changed, 442 insertions(+), 1 deletion(-)\n create mode 100644 tests/qemu-iotests/051.s390-ccw-virtio.out",
    "diff": "diff --git a/tests/qemu-iotests/051 b/tests/qemu-iotests/051\nindex c8cfc764bc..f6ad0f4f0b 100755\n--- a/tests/qemu-iotests/051\n+++ b/tests/qemu-iotests/051\n@@ -103,7 +103,14 @@ echo\n echo === Device without drive ===\n echo\n \n-run_qemu -device virtio-scsi-pci -device scsi-hd\n+case \"$QEMU_DEFAULT_MACHINE\" in\n+  s390-ccw-virtio)\n+      run_qemu -device virtio-scsi-ccw -device scsi-hd\n+      ;;\n+  *)\n+      run_qemu -device virtio-scsi-pci -device scsi-hd\n+      ;;\n+esac\n \n echo\n echo === Overriding backing file ===\ndiff --git a/tests/qemu-iotests/051.s390-ccw-virtio.out b/tests/qemu-iotests/051.s390-ccw-virtio.out\nnew file mode 100644\nindex 0000000000..7555f0b73e\n--- /dev/null\n+++ b/tests/qemu-iotests/051.s390-ccw-virtio.out\n@@ -0,0 +1,434 @@\n+QA output created by 051\n+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728\n+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base\n+\n+=== Unknown option ===\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'\n+\n+\n+=== Unknown protocol option ===\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt'\n+\n+\n+=== Invalid format ===\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=foo\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,driver=foo\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'\n+\n+\n+=== Device without drive ===\n+\n+Testing: -device virtio-scsi-ccw -device scsi-hd\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) QEMU_PROG: -device scsi-hd: drive property not set\n+\n+\n+=== Overriding backing file ===\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) info block\n+drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)\n+    Removable device: not locked, tray closed\n+    Cache mode:       writeback\n+    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files\n+\n+\n+=== Enable and disable lazy refcounting on the command line, plus some invalid values ===\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'\n+\n+\n+=== With version 2 images enabling lazy refcounts must fail ===\n+\n+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+\n+=== No medium ===\n+\n+Testing: -drive if=virtio\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty\n+\n+\n+=== Read-only ===\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+\n+=== Cache modes ===\n+\n+Testing: -drive driver=null-co,cache=none\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive driver=null-co,cache=directsync\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive driver=null-co,cache=writeback\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive driver=null-co,cache=writethrough\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive driver=null-co,cache=unsafe\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive driver=null-co,cache=invalid_value\n+QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) info block\n+drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)\n+    Removable device: not locked, tray closed\n+    Cache mode:       writeback\n+    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)\n+(qemu) info block file\n+\n+file: TEST_DIR/t.qcow2 (file)\n+    Cache mode:       writeback\n+(qemu) info block backing\n+backing: TEST_DIR/t.qcow2.base (qcow2, read-only)\n+    Cache mode:       writeback, ignore flushes\n+(qemu) info block backing-file\n+\n+backing-file: TEST_DIR/t.qcow2.base (file, read-only)\n+    Cache mode:       writeback, ignore flushes\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) info block\n+drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)\n+    Removable device: not locked, tray closed\n+    Cache mode:       writethrough\n+    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)\n+(qemu) info block file\n+\n+file: TEST_DIR/t.qcow2 (file)\n+    Cache mode:       writeback\n+(qemu) info block backing\n+backing: TEST_DIR/t.qcow2.base (qcow2, read-only)\n+    Cache mode:       writeback, ignore flushes\n+(qemu) info block backing-file\n+\n+backing-file: TEST_DIR/t.qcow2.base (file, read-only)\n+    Cache mode:       writeback, ignore flushes\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) info block\n+drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)\n+    Removable device: not locked, tray closed\n+    Cache mode:       writeback, ignore flushes\n+    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)\n+(qemu) info block file\n+\n+file: TEST_DIR/t.qcow2 (file)\n+    Cache mode:       writeback, ignore flushes\n+(qemu) info block backing\n+backing: TEST_DIR/t.qcow2.base (qcow2, read-only)\n+    Cache mode:       writeback, ignore flushes\n+(qemu) info block backing-file\n+\n+backing-file: TEST_DIR/t.qcow2.base (file, read-only)\n+    Cache mode:       writeback, ignore flushes\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0: invalid cache option\n+\n+\n+=== Specifying the protocol layer ===\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+\n+=== Leaving out required options ===\n+\n+Testing: -drive driver=file\n+QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name\n+\n+Testing: -drive driver=file,filename=\n+QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name\n+\n+Testing: -drive driver=nbd\n+QEMU_PROG: -drive driver=nbd: NBD server address missing\n+\n+Testing: -drive driver=raw\n+QEMU_PROG: -drive driver=raw: A block device must be specified for \"file\"\n+\n+Testing: -drive file.driver=file\n+QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name\n+\n+Testing: -drive file.driver=nbd\n+QEMU_PROG: -drive file.driver=nbd: NBD server address missing\n+\n+Testing: -drive file.driver=raw\n+QEMU_PROG: -drive file.driver=raw: A block device must be specified for \"file\"\n+\n+Testing: -drive foo=bar\n+QEMU_PROG: -drive foo=bar: Must specify either driver or file\n+\n+\n+=== Specifying both an option and its legacy alias ===\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678: 'throttling.iops-total' and its alias 'iops' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678: 'throttling.iops-read' and its alias 'iops_rd' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678: 'throttling.iops-write' and its alias 'iops_wr' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678: 'throttling.bps-total' and its alias 'bps' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678: 'throttling.bps-read' and its alias 'bps_rd' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678: 'throttling.bps-write' and its alias 'bps_wr' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678: 'throttling.iops-total-max' and its alias 'iops_max' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678: 'throttling.iops-read-max' and its alias 'iops_rd_max' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678: 'throttling.iops-write-max' and its alias 'iops_wr_max' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678: 'throttling.bps-total-max' and its alias 'bps_max' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678: 'throttling.bps-read-max' and its alias 'bps_rd_max' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678: 'throttling.bps-write-max' and its alias 'bps_wr_max' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678: 'throttling.iops-size' and its alias 'iops_size' can't be used at the same time\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off: 'read-only' and its alias 'readonly' can't be used at the same time\n+\n+\n+=== Catching negative/large throttling values ===\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,iops=-1\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps=-2\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps=0\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps=1\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999\n+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]\n+\n+\n+=== Parsing protocol from file name ===\n+\n+Testing: -hda foo:bar\n+QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'\n+\n+Testing: -drive file=foo:bar\n+QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'\n+\n+Testing: -drive file.filename=foo:bar\n+QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory\n+\n+Testing: -hda file:TEST_DIR/t.qcow2\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive file=file:TEST_DIR/t.qcow2\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) quit\n+\n+Testing: -drive file.filename=file:TEST_DIR/t.qcow2\n+QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory\n+\n+\n+=== Snapshot mode ===\n+\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x22 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x22 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) quit\n+\n+Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x22 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) quit\n+\n+Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x22 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) quit\n+\n+Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x22 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) quit\n+\n+Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x22 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x22 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) quit\n+\n+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x22 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) quit\n+\n+read 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x22 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) quit\n+\n+read 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0\n+QEMU X.Y.Z monitor - type 'help' for more information\n+(qemu) qemu-io drive0 \"write -P 0x33 0 4k\"\n+wrote 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+(qemu) commit drive0\n+(qemu) quit\n+\n+read 4096/4096 bytes at offset 0\n+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n+*** done\n",
    "prefixes": [
        "2/3"
    ]
}