get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1072853,
    "url": "http://patchwork.ozlabs.org/api/patches/1072853/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20190401140903.19186-13-eblake@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": "<20190401140903.19186-13-eblake@redhat.com>",
    "list_archive_url": null,
    "date": "2019-04-01T14:09:01",
    "name": "[PULL,12/14] block: Add bdrv_get_request_alignment()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "60cdd243a85f94234ae3bbf35371a9e21fb8534b",
    "submitter": {
        "id": 6591,
        "url": "http://patchwork.ozlabs.org/api/people/6591/?format=api",
        "name": "Eric Blake",
        "email": "eblake@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20190401140903.19186-13-eblake@redhat.com/mbox/",
    "series": [
        {
            "id": 100345,
            "url": "http://patchwork.ozlabs.org/api/series/100345/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=100345",
            "date": "2019-04-01T14:08:49",
            "name": "[PULL,01/14] qemu-img: Report bdrv_block_status failures",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/100345/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1072853/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1072853/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=209.51.188.17; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=redhat.com"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 44Xvdn2vjSz9sPp\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  2 Apr 2019 01:21:01 +1100 (AEDT)",
            "from localhost ([127.0.0.1]:36109 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 1hAxo3-0005wI-CK\n\tfor incoming@patchwork.ozlabs.org; Mon, 01 Apr 2019 10:20:59 -0400",
            "from eggs.gnu.org ([209.51.188.92]:46014)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <eblake@redhat.com>) id 1hAxcs-0002BG-5P\n\tfor qemu-devel@nongnu.org; Mon, 01 Apr 2019 10:09:27 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <eblake@redhat.com>) id 1hAxcp-0004xq-Ni\n\tfor qemu-devel@nongnu.org; Mon, 01 Apr 2019 10:09:26 -0400",
            "from mx1.redhat.com ([209.132.183.28]:48762)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <eblake@redhat.com>)\n\tid 1hAxcm-0004rc-6w; Mon, 01 Apr 2019 10:09:20 -0400",
            "from smtp.corp.redhat.com\n\t(int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23])\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 3B7A29F728;\n\tMon,  1 Apr 2019 14:09:19 +0000 (UTC)",
            "from blue.redhat.com (ovpn-116-75.phx2.redhat.com [10.3.116.75])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 9898A19C70;\n\tMon,  1 Apr 2019 14:09:17 +0000 (UTC)"
        ],
        "From": "Eric Blake <eblake@redhat.com>",
        "To": "qemu-devel@nongnu.org",
        "Date": "Mon,  1 Apr 2019 09:09:01 -0500",
        "Message-Id": "<20190401140903.19186-13-eblake@redhat.com>",
        "In-Reply-To": "<20190401140903.19186-1-eblake@redhat.com>",
        "References": "<20190401140903.19186-1-eblake@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.84 on 10.5.11.23",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.39]);\n\tMon, 01 Apr 2019 14:09:19 +0000 (UTC)",
        "Content-Transfer-Encoding": "quoted-printable",
        "X-detected-operating-system": "by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]",
        "X-Received-From": "209.132.183.28",
        "Subject": "[Qemu-devel] [PULL 12/14] block: Add bdrv_get_request_alignment()",
        "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": "Kevin Wolf <kwolf@redhat.com>,\n\tVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,\n\t\"open list:Block layer core\" <qemu-block@nongnu.org>,\n\tMax Reitz <mreitz@redhat.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 next patch needs access to a device's minimum permitted\nalignment, since NBD wants to advertise this to clients. Add\nan accessor function, borrowing from blk_get_max_transfer()\nfor accessing a backend's block limits.\n\nSigned-off-by: Eric Blake <eblake@redhat.com>\nReviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>\nMessage-Id: <20190329042750.14704-6-eblake@redhat.com>\n---\n include/sysemu/block-backend.h | 1 +\n block/block-backend.c          | 7 +++++++\n 2 files changed, 8 insertions(+)",
    "diff": "diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h\nindex e2066eb06b2..3be05c2d689 100644\n--- a/include/sysemu/block-backend.h\n+++ b/include/sysemu/block-backend.h\n@@ -177,6 +177,7 @@ bool blk_is_available(BlockBackend *blk);\n void blk_lock_medium(BlockBackend *blk, bool locked);\n void blk_eject(BlockBackend *blk, bool eject_flag);\n int blk_get_flags(BlockBackend *blk);\n+uint32_t blk_get_request_alignment(BlockBackend *blk);\n uint32_t blk_get_max_transfer(BlockBackend *blk);\n int blk_get_max_iov(BlockBackend *blk);\n void blk_set_guest_block_size(BlockBackend *blk, int align);\ndiff --git a/block/block-backend.c b/block/block-backend.c\nindex edad02a0f2a..f78e82a707f 100644\n--- a/block/block-backend.c\n+++ b/block/block-backend.c\n@@ -1764,6 +1764,13 @@ int blk_get_flags(BlockBackend *blk)\n     }\n }\n\n+/* Returns the minimum request alignment, in bytes; guaranteed nonzero */\n+uint32_t blk_get_request_alignment(BlockBackend *blk)\n+{\n+    BlockDriverState *bs = blk_bs(blk);\n+    return bs ? bs->bl.request_alignment : BDRV_SECTOR_SIZE;\n+}\n+\n /* Returns the maximum transfer length, in bytes; guaranteed nonzero */\n uint32_t blk_get_max_transfer(BlockBackend *blk)\n {\n",
    "prefixes": [
        "PULL",
        "12/14"
    ]
}