get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 818257,
    "url": "http://patchwork.ozlabs.org/api/patches/818257/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170925135801.144261-6-vsementsov@virtuozzo.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": "<20170925135801.144261-6-vsementsov@virtuozzo.com>",
    "list_archive_url": null,
    "date": "2017-09-25T13:57:58",
    "name": "[5/8] nbd: header constants indenting",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a646a29f62e97fbab1861398a2846a2bd3bdf862",
    "submitter": {
        "id": 66592,
        "url": "http://patchwork.ozlabs.org/api/people/66592/?format=api",
        "name": "Vladimir Sementsov-Ogievskiy",
        "email": "vsementsov@virtuozzo.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20170925135801.144261-6-vsementsov@virtuozzo.com/mbox/",
    "series": [
        {
            "id": 4967,
            "url": "http://patchwork.ozlabs.org/api/series/4967/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=4967",
            "date": "2017-09-25T13:58:01",
            "name": "nbd minimal structured read",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4967/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818257/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818257/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>)",
        "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 3y15Sy6S1nz9tX8\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 26 Sep 2017 00:05:22 +1000 (AEST)",
            "from localhost ([::1]:42607 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 1dwU0f-0003Yv-2G\n\tfor incoming@patchwork.ozlabs.org; Mon, 25 Sep 2017 10:05:21 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:39654)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <vsementsov@virtuozzo.com>) id 1dwTtz-0006YW-Ja\n\tfor qemu-devel@nongnu.org; Mon, 25 Sep 2017 09:58:29 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <vsementsov@virtuozzo.com>) id 1dwTtv-0007DJ-MB\n\tfor qemu-devel@nongnu.org; Mon, 25 Sep 2017 09:58:27 -0400",
            "from mailhub.sw.ru ([195.214.232.25]:43985 helo=relay.sw.ru)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <vsementsov@virtuozzo.com>)\n\tid 1dwTtv-0007Bp-Al\n\tfor qemu-devel@nongnu.org; Mon, 25 Sep 2017 09:58:23 -0400",
            "from kvm.sw.ru (msk-vpn.virtuozzo.com [195.214.232.6])\n\tby relay.sw.ru (8.13.4/8.13.4) with ESMTP id v8PDw1fv013085;\n\tMon, 25 Sep 2017 16:58:03 +0300 (MSK)"
        ],
        "From": "Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>",
        "To": "qemu-devel@nongnu.org, qemu-block@nongnu.org",
        "Date": "Mon, 25 Sep 2017 16:57:58 +0300",
        "Message-Id": "<20170925135801.144261-6-vsementsov@virtuozzo.com>",
        "X-Mailer": "git-send-email 2.11.1",
        "In-Reply-To": "<20170925135801.144261-1-vsementsov@virtuozzo.com>",
        "References": "<20170925135801.144261-1-vsementsov@virtuozzo.com>",
        "X-detected-operating-system": "by eggs.gnu.org: OpenBSD 3.x [fuzzy]",
        "X-Received-From": "195.214.232.25",
        "Subject": "[Qemu-devel] [PATCH 5/8] nbd: header constants indenting",
        "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": "kwolf@redhat.com, vsementsov@virtuozzo.com, Hmreitz@redhat.com,\n\tden@openvz.org, pbonzini@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": "Prepare indenting for the following commit.\n\nSigned-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>\n---\n include/block/nbd.h | 15 ++++++++-------\n nbd/nbd-internal.h  | 34 +++++++++++++++++-----------------\n 2 files changed, 25 insertions(+), 24 deletions(-)",
    "diff": "diff --git a/include/block/nbd.h b/include/block/nbd.h\nindex 49008980f4..a6df5ce8b5 100644\n--- a/include/block/nbd.h\n+++ b/include/block/nbd.h\n@@ -71,13 +71,14 @@ typedef struct NBDSimpleReply {\n \n /* Transmission (export) flags: sent from server to client during handshake,\n    but describe what will happen during transmission */\n-#define NBD_FLAG_HAS_FLAGS      (1 << 0)        /* Flags are there */\n-#define NBD_FLAG_READ_ONLY      (1 << 1)        /* Device is read-only */\n-#define NBD_FLAG_SEND_FLUSH     (1 << 2)        /* Send FLUSH */\n-#define NBD_FLAG_SEND_FUA       (1 << 3)        /* Send FUA (Force Unit Access) */\n-#define NBD_FLAG_ROTATIONAL     (1 << 4)        /* Use elevator algorithm - rotational media */\n-#define NBD_FLAG_SEND_TRIM      (1 << 5)        /* Send TRIM (discard) */\n-#define NBD_FLAG_SEND_WRITE_ZEROES (1 << 6)     /* Send WRITE_ZEROES */\n+#define NBD_FLAG_HAS_FLAGS         (1 << 0) /* Flags are there */\n+#define NBD_FLAG_READ_ONLY         (1 << 1) /* Device is read-only */\n+#define NBD_FLAG_SEND_FLUSH        (1 << 2) /* Send FLUSH */\n+#define NBD_FLAG_SEND_FUA          (1 << 3) /* Send FUA (Force Unit Access) */\n+#define NBD_FLAG_ROTATIONAL        (1 << 4) /* Use elevator algorithm -\n+                                               rotational media */\n+#define NBD_FLAG_SEND_TRIM         (1 << 5) /* Send TRIM (discard) */\n+#define NBD_FLAG_SEND_WRITE_ZEROES (1 << 6) /* Send WRITE_ZEROES */\n \n /* New-style handshake (global) flags, sent from server to client, and\n    control what will happen during handshake phase. */\ndiff --git a/nbd/nbd-internal.h b/nbd/nbd-internal.h\nindex 320abef296..d96c9cc7fd 100644\n--- a/nbd/nbd-internal.h\n+++ b/nbd/nbd-internal.h\n@@ -46,23 +46,23 @@\n /* Size of oldstyle negotiation */\n #define NBD_OLDSTYLE_NEGOTIATE_SIZE (8 + 8 + 8 + 4 + 124)\n \n-#define NBD_REQUEST_MAGIC       0x25609513\n-#define NBD_SIMPLE_REPLY_MAGIC  0x67446698\n-#define NBD_OPTS_MAGIC          0x49484156454F5054LL\n-#define NBD_CLIENT_MAGIC        0x0000420281861253LL\n-#define NBD_REP_MAGIC           0x0003e889045565a9LL\n-\n-#define NBD_SET_SOCK            _IO(0xab, 0)\n-#define NBD_SET_BLKSIZE         _IO(0xab, 1)\n-#define NBD_SET_SIZE            _IO(0xab, 2)\n-#define NBD_DO_IT               _IO(0xab, 3)\n-#define NBD_CLEAR_SOCK          _IO(0xab, 4)\n-#define NBD_CLEAR_QUE           _IO(0xab, 5)\n-#define NBD_PRINT_DEBUG         _IO(0xab, 6)\n-#define NBD_SET_SIZE_BLOCKS     _IO(0xab, 7)\n-#define NBD_DISCONNECT          _IO(0xab, 8)\n-#define NBD_SET_TIMEOUT         _IO(0xab, 9)\n-#define NBD_SET_FLAGS           _IO(0xab, 10)\n+#define NBD_REQUEST_MAGIC           0x25609513\n+#define NBD_SIMPLE_REPLY_MAGIC      0x67446698\n+#define NBD_OPTS_MAGIC              0x49484156454F5054LL\n+#define NBD_CLIENT_MAGIC            0x0000420281861253LL\n+#define NBD_REP_MAGIC               0x0003e889045565a9LL\n+\n+#define NBD_SET_SOCK                _IO(0xab, 0)\n+#define NBD_SET_BLKSIZE             _IO(0xab, 1)\n+#define NBD_SET_SIZE                _IO(0xab, 2)\n+#define NBD_DO_IT                   _IO(0xab, 3)\n+#define NBD_CLEAR_SOCK              _IO(0xab, 4)\n+#define NBD_CLEAR_QUE               _IO(0xab, 5)\n+#define NBD_PRINT_DEBUG             _IO(0xab, 6)\n+#define NBD_SET_SIZE_BLOCKS         _IO(0xab, 7)\n+#define NBD_DISCONNECT              _IO(0xab, 8)\n+#define NBD_SET_TIMEOUT             _IO(0xab, 9)\n+#define NBD_SET_FLAGS               _IO(0xab, 10)\n \n /* NBD errors are based on errno numbers, so there is a 1:1 mapping,\n  * but only a limited set of errno values is specified in the protocol.\n",
    "prefixes": [
        "5/8"
    ]
}