get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230298,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230298/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747214327.4107228.3239123429130995999.stgit@frogsfrogsfrogs/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/8/?format=api",
        "name": "Linux ext4 filesystem development",
        "link_name": "linux-ext4",
        "list_id": "linux-ext4.vger.kernel.org",
        "list_email": "linux-ext4@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<177747214327.4107228.3239123429130995999.stgit@frogsfrogsfrogs>",
    "date": "2026-04-29T14:52:37",
    "name": "[5/5] libext2fs: allow callers to disallow I/O to file data blocks",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "22c168078fe1c08587e2faa9c4c8dea26fb78f78",
    "submitter": {
        "id": 77032,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/77032/?format=api",
        "name": "Darrick J. Wong",
        "email": "djwong@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747214327.4107228.3239123429130995999.stgit@frogsfrogsfrogs/mbox/",
    "series": [
        {
            "id": 502086,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502086/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502086",
            "date": "2026-04-29T14:51:35",
            "name": "[1/5] libext2fs: invalidate cached blocks when freeing them",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502086/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230298/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230298/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=3GDI=C4=vger.kernel.org=linux-ext4+bounces-16189-patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ext4@vger.kernel.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "patchwork-incoming@ozlabs.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=sYREVN6S;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=3gdi=c4=vger.kernel.org=linux-ext4+bounces-16189-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c09:e001:a7::12fc:5321\"\n arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org",
            "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=sYREVN6S;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16189-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"sYREVN6S\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5KzM2r0tz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:52:47 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5KzM2LW0z4wLM\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:52:47 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g5KzM2HRZz4wSY; Thu, 30 Apr 2026 00:52:47 +1000 (AEST)",
            "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g5KzG54Rcz4wLM\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 00:52:42 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 4C45E30087CB\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 14:52:40 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A4B7031ED80;\n\tWed, 29 Apr 2026 14:52:38 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 6798A2727FD;\n\tWed, 29 Apr 2026 14:52:38 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 419EBC19425;\n\tWed, 29 Apr 2026 14:52:38 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777474367; cv=pass;\n\tb=QxQ/RB+M5bh0bJA6lTh/hpF1eRKinzf5IqgZvXeQoGuxJvjL11M66MxUDinW6Msh3wwFaMbiG1lU/y3jLuU8U9z69YRqV1q0+9ed2lCP6ooObNY+7FbJiAVl58glHG2fginJdAcYKswCFiU5lj56btW8VW9bzpealR1sZqYLDqLMPLFc9OYxtjMG9KatqlA6VIjUfKSgV9xGVcttq8Pv+JfXUsKrOtMx0aVxRZSL5snD5UhnHK2aTGdWPhTjziBeCU3e4Jp3GnYUH678XZyjkaXKL/HDIN6ufzpQo9w7x/cQumShwq0vb2dSOQM//Q5WCfOYZCjCl3/MezSEOcQ39w==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777474358; cv=none;\n b=C1g9q1alRmyh3mU2gXHGNxXlJslsUKj19s3Vz0mbLBHrAVT5cSIuU1IC+SMSsazUYsX5BW6jGU4M96SxC3WdksYDPTVPJ8DhbFQ2VytPHZPB0WY/iqRf0fYfoFmRVPayvY9Clw2wru0I3gKHqwHo8WLZ2Yyq3/osMwqj5c+ELdQ="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777474367; c=relaxed/relaxed;\n\tbh=2+tHmuP3ZYI9kfUHAvDQUQshkqETlrBkPbiBhNIPxQU=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=LjOCyuV/kAOfwCSBBdPV6C1n4/SVV05WXM0PyVovcRC2fgeknY9/4lhBohL+p3DWlwgXMZ0KhwdMJQ6bbKJMce8elv1JnedpgrME+/O37GgdO3VgWm+iIj/1yScnXLQDrVX9pA8TwLDTg1wlkuIUBOt/RooBjsX2vem9+D3XP8nq5BV9etcpeai2iIHKGh8dRTeVPiSgGGeBzgg6SRIMdY9zKmz6RtFoZucRAzXgfhs3XnP1zBTXxZfc2b4enPjlz6wEubDRn7RIBUqMaG9F8IYG1y9ByR2nHCAHyIkdya+ivHbAynJ0sKRiFOcfJZ1RdrzgStiSdis+9A6J/0Loag==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777474358; c=relaxed/simple;\n\tbh=d8YWgFo6RU7h+KnbJt1EGpteSqV25oyVcW8p2ugZDgo=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=C4XgNGLCUn/9vYJ4lZEjch6NkcmzirWTRZVly3fGml4+P0Yve+y8VuBXhJAJE4tUEsH8z8KiYRzeBSAkGejILTN4U5VyYqtqnKNLKk5U5mWaihfLOArwduHUE2cHOUqFc2WRjP/m+AI50lEjZrfQm4xbwbGiaBzFl7L6qglx/h8="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=sYREVN6S; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16189-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=sYREVN6S; arc=none smtp.client-ip=10.30.226.201"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777474358;\n\tbh=d8YWgFo6RU7h+KnbJt1EGpteSqV25oyVcW8p2ugZDgo=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=sYREVN6SyYuO7Lsqv3M0OlFkMXvPeXz2YP9bB3r7J0ltI+uBIPB2/ard6igC0/8VI\n\t /zxC/9Tj+Y3WUGvHRpBiath9f1LdqdlySi6FQLpAtcxoi8TYJwmGoOY+sHbEIl8c00\n\t 4+eVLsnF9bchhRCmds1eQA1X0XPvUim1jcfoIaZL3kzNZbOe/RE2xHGKYk55gYikbL\n\t qoS8WejX7KSGdoCtWQREORUbJ44ob9LrBoasZTsb15/kRBLTbUEqVEm6U966KbHwkR\n\t STk2iL62d3hELIbYFPk/ibu6IbSR2oi3RX7/kABCcueUbZga0eAntgrEGdHf40D7VQ\n\t QSVEIuhG/FvBg==",
        "Date": "Wed, 29 Apr 2026 07:52:37 -0700",
        "Subject": "[PATCH 5/5] libext2fs: allow callers to disallow I/O to file data\n blocks",
        "From": "\"Darrick J. Wong\" <djwong@kernel.org>",
        "To": "tytso@mit.edu",
        "Cc": "bernd@bsbernd.com, miklos@szeredi.hu, linux-ext4@vger.kernel.org,\n neal@gompa.dev, linux-fsdevel@vger.kernel.org, fuse-devel@lists.linux.dev,\n joannelkoong@gmail.com",
        "Message-ID": "<177747214327.4107228.3239123429130995999.stgit@frogsfrogsfrogs>",
        "In-Reply-To": "<177747214224.4107228.16300103064218258692.stgit@frogsfrogsfrogs>",
        "References": "<177747214224.4107228.16300103064218258692.stgit@frogsfrogsfrogs>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ext4@vger.kernel.org",
        "List-Id": "<linux-ext4.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "From: Darrick J. Wong <djwong@kernel.org>\n\nAdd a flag to ext2_file_t to disallow read and write I/O to file data\nblocks.  This supports fuse2fs iomap support, which will keep all the\nfile data I/O inside the kerne.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n lib/ext2fs/ext2fs.h |    3 +++\n lib/ext2fs/fileio.c |   12 +++++++++++-\n 2 files changed, 14 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h\nindex 8fad4c4011dd5a..23b0695a32d150 100644\n--- a/lib/ext2fs/ext2fs.h\n+++ b/lib/ext2fs/ext2fs.h\n@@ -178,6 +178,9 @@ typedef struct ext2_struct_dblist *ext2_dblist;\n #define EXT2_FILE_WRITE\t\t0x0001\n #define EXT2_FILE_CREATE\t0x0002\n \n+/* no file I/O to disk blocks, only to inline data */\n+#define EXT2_FILE_NOBLOCKIO\t0x0004\n+\n #define EXT2_FILE_MASK\t\t0x00FF\n \n #define EXT2_FILE_BUF_DIRTY\t0x4000\ndiff --git a/lib/ext2fs/fileio.c b/lib/ext2fs/fileio.c\nindex 3a36e9e7fff43b..95ee45ec7371ae 100644\n--- a/lib/ext2fs/fileio.c\n+++ b/lib/ext2fs/fileio.c\n@@ -314,6 +314,11 @@ errcode_t ext2fs_file_read(ext2_file_t file, void *buf,\n \tif (file->inode.i_flags & EXT4_INLINE_DATA_FL)\n \t\treturn ext2fs_file_read_inline_data(file, buf, wanted, got);\n \n+\tif (file->flags & EXT2_FILE_NOBLOCKIO) {\n+\t\tretval = EXT2_ET_OP_NOT_SUPPORTED;\n+\t\tgoto fail;\n+\t}\n+\n \twhile ((file->pos < EXT2_I_SIZE(&file->inode)) && (wanted > 0)) {\n \t\tretval = sync_buffer_position(file);\n \t\tif (retval)\n@@ -441,6 +446,11 @@ errcode_t ext2fs_file_write(ext2_file_t file, const void *buf,\n \t\tretval = 0;\n \t}\n \n+\tif (file->flags & EXT2_FILE_NOBLOCKIO) {\n+\t\tretval = EXT2_ET_OP_NOT_SUPPORTED;\n+\t\tgoto fail;\n+\t}\n+\n \twhile (nbytes > 0) {\n \t\tretval = sync_buffer_position(file);\n \t\tif (retval)\n@@ -609,7 +619,7 @@ static errcode_t ext2fs_file_zero_past_offset(ext2_file_t file,\n \tint ret_flags;\n \terrcode_t retval;\n \n-\tif (off == 0)\n+\tif (off == 0 || (file->flags & EXT2_FILE_NOBLOCKIO))\n \t\treturn 0;\n \n \tretval = sync_buffer_position(file);\n",
    "prefixes": [
        "5/5"
    ]
}