get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2194279,
    "url": "http://patchwork.ozlabs.org/api/patches/2194279/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260208055858.2166524-5-damien@zamaudio.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": "<20260208055858.2166524-5-damien@zamaudio.com>",
    "list_archive_url": null,
    "date": "2026-02-08T05:59:38",
    "name": "[v5,4/5,qemu] block/file-posix: Clean up sys/ioctl import",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "6ce52109a07c9d05634cf43c4ed483adf8c8ec83",
    "submitter": {
        "id": 77328,
        "url": "http://patchwork.ozlabs.org/api/people/77328/?format=api",
        "name": "Damien Zammit",
        "email": "damien@zamaudio.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260208055858.2166524-5-damien@zamaudio.com/mbox/",
    "series": [
        {
            "id": 491409,
            "url": "http://patchwork.ozlabs.org/api/series/491409/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=491409",
            "date": "2026-02-08T05:59:13",
            "name": "GNU/Hurd support",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/491409/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2194279/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2194279/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@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=zamaudio.com header.i=@zamaudio.com header.a=rsa-sha256\n header.s=protonmail3 header.b=YoQvYfPH;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f7xyp09p8z1xtV\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 08 Feb 2026 17:01:06 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1voxqR-0000n3-Hh; Sun, 08 Feb 2026 01:00:31 -0500",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <damien@zamaudio.com>)\n id 1voxpm-0000R6-Ip; Sun, 08 Feb 2026 00:59:55 -0500",
            "from mail-4317.protonmail.ch ([185.70.43.17])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <damien@zamaudio.com>)\n id 1voxph-0007VT-Ee; Sun, 08 Feb 2026 00:59:46 -0500"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=zamaudio.com;\n s=protonmail3; t=1770530382; x=1770789582;\n bh=v+3r1FrmqevCgJnc8NlPIs5RUlRvtA5aa2esuxBc84k=;\n h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:\n Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:\n Message-ID:BIMI-Selector;\n b=YoQvYfPHDVmnDqK43cEMgWal0gvDyYDSayrh9q4X9ufiVFDx/E0UBRWvk0sPzfIIy\n dMq7lkP7gsaqdK7Zc5SnphlNsjyDiXyxrCCuIoGEdzgmcOjQJzalqev5Pe5H5LharB\n P7qy3oERveQbhIjpK92AtF9EkySQpdoreeI+OaPVurrBnWTIarM4scfdaL1v9uD1a0\n g9c3yO5uYqV5dgK0YSIWTbE2UwEoeqHqIdG6T2gwgNHj3cY5B8jx7pNcmoTTp6oLfD\n RoE5+AcbGE7pp4PciPbzDn4xe4EIy1emwtGnFEN+7wMBxRStBrT7XnQKdgI6BzODEU\n zSzjU0WgF3n7A==",
        "Date": "Sun, 08 Feb 2026 05:59:38 +0000",
        "To": "bug-hurd@gnu.org",
        "From": "Damien Zammit <damien@zamaudio.com>",
        "Cc": "qemu-devel@nongnu.org, qemu-block@nongnu.org, manolodemedici@gmail.com,\n pbonzini@redhat.com, stefanb@linux.ibm.com, peter.maydell@linaro.org,\n kwolf@redhat.com, berrange@redhat.com, eblake@redhat.com, bugaevc@gmail.com",
        "Subject": "[PATCH v5 4/5 qemu] block/file-posix: Clean up sys/ioctl import",
        "Message-ID": "<20260208055858.2166524-5-damien@zamaudio.com>",
        "In-Reply-To": "<20260208055858.2166524-1-damien@zamaudio.com>",
        "References": "<20260208055858.2166524-1-damien@zamaudio.com>",
        "Feedback-ID": "43209410:user:proton",
        "X-Pm-Message-ID": "8ddd599e21def8fd100c0070f1b7f9b4e473317b",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=utf-8",
        "Content-Transfer-Encoding": "quoted-printable",
        "Received-SPF": "pass client-ip=185.70.43.17; envelope-from=damien@zamaudio.com;\n helo=mail-4317.protonmail.ch",
        "X-Spam_score_int": "-27",
        "X-Spam_score": "-2.8",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://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 <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "Since all platforms except sun include this header,\nclean up the ifdefs.\n\nSigned-off-by: Damien Zammit <damien@zamaudio.com>\n---\n block/file-posix.c | 15 ++++-----------\n 1 file changed, 4 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/block/file-posix.c b/block/file-posix.c\nindex 6265d2e248..8a3ba5eecb 100644\n--- a/block/file-posix.c\n+++ b/block/file-posix.c\n@@ -43,9 +43,11 @@\n #include \"scsi/constants.h\"\n #include \"scsi/utils.h\"\n \n-#if defined(__APPLE__) && (__MACH__)\n+#ifndef __sun__\n #include <sys/ioctl.h>\n-#if defined(HAVE_HOST_BLOCK_DEVICE)\n+#endif\n+\n+#if defined(__APPLE__) && (__MACH__) && defined(HAVE_HOST_BLOCK_DEVICE)\n #include <paths.h>\n #include <sys/param.h>\n #include <sys/mount.h>\n@@ -57,7 +59,6 @@\n //#include <IOKit/storage/IOCDTypes.h>\n #include <IOKit/storage/IODVDMedia.h>\n #include <CoreFoundation/CoreFoundation.h>\n-#endif /* defined(HAVE_HOST_BLOCK_DEVICE) */\n #endif\n \n #ifdef __sun__\n@@ -65,7 +66,6 @@\n #include <sys/dkio.h>\n #endif\n #ifdef __linux__\n-#include <sys/ioctl.h>\n #include <sys/param.h>\n #include <sys/syscall.h>\n #include <sys/vfs.h>\n@@ -95,27 +95,20 @@\n #endif\n \n #ifdef __OpenBSD__\n-#include <sys/ioctl.h>\n #include <sys/disklabel.h>\n #include <sys/dkio.h>\n #endif\n \n #ifdef __NetBSD__\n-#include <sys/ioctl.h>\n #include <sys/disklabel.h>\n #include <sys/dkio.h>\n #include <sys/disk.h>\n #endif\n \n #ifdef __DragonFly__\n-#include <sys/ioctl.h>\n #include <sys/diskslice.h>\n #endif\n \n-#ifdef EMSCRIPTEN\n-#include <sys/ioctl.h>\n-#endif\n-\n /* OS X does not have O_DSYNC */\n #ifndef O_DSYNC\n #ifdef O_SYNC\n",
    "prefixes": [
        "v5",
        "4/5",
        "qemu"
    ]
}