get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230318,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230318/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747214752.4107473.16188658739141343172.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": "<177747214752.4107473.16188658739141343172.stgit@frogsfrogsfrogs>",
    "date": "2026-04-29T14:55:45",
    "name": "[12/19] fuse2fs: enable file IO to inline data files",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d945d444b706024b4b7ea322e13cac3fe19b9a0d",
    "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/177747214752.4107473.16188658739141343172.stgit@frogsfrogsfrogs/mbox/",
    "series": [
        {
            "id": 502087,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502087/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502087",
            "date": "2026-04-29T14:53:09",
            "name": "[01/19] fuse2fs: implement bare minimum iomap for file mapping reporting",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502087/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230318/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230318/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=rDM1=C4=vger.kernel.org=linux-ext4+bounces-16201-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=AIzn0dFv;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=rdm1=c4=vger.kernel.org=linux-ext4+bounces-16201-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c0a:e001:db::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=AIzn0dFv;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16201-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=\"AIzn0dFv\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\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 4g5L7K2b3jz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:59:41 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5L7K29GDz4wM1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 00:59:41 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g5L7K25vHz4wQg; Thu, 30 Apr 2026 00:59:41 +1000 (AEST)",
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::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 4g5L7F6dghz4wM1\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 00:59:37 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 4521A302E311\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 14:55:47 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A0F002FD696;\n\tWed, 29 Apr 2026 14:55:46 +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 62D2630DEB2;\n\tWed, 29 Apr 2026 14:55:46 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 0AE7FC19425;\n\tWed, 29 Apr 2026 14:55:46 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777474781; cv=pass;\n\tb=VjL91uTMufSsGa3PRkLHoCIqi7ozFd8jDIch18oUCsGG8Gi5jbTCrNp39XeJTmB+WG3pwZ7k38idVc/ZYkMlcsqTI5q5iWz2gpoyzKHTLJjWcv1MCI/7vnxua9e3kXSQRXvkfnt7v8M85Ucj8H4V+QJ9GOwycU7xKOorfXLEWKUo+K4DqLdi13to+FrYDmBnx5ATBsyQFZG1tqKhj06CGtBUEGohtGtlaUhrrR5J775XGDK//iRUs1ey51SOYw+9D+ylL6VlVy1NmhV36p4reM+BLpqRZs/VWs7wHIyGDtjZAxO7zNBQImQVdkUI6fpip264nSzNMq1NQ14m6Is6aQ==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777474546; cv=none;\n b=joHQflVHZJtgg5i3lH/XP+qw8fLuJ2xe1wGDrEJryYfWxNtmZipuHCe35/oqli8PNaLvUW657pCkEk5PjQ2pN5L8soVOEhAt1B2ageSpF1Xw2z4oEHA18TsSXEQUo5Gziip5OWBgSODCwZr6b8t0KTxRZ/rfeqqLfTOFnROwX9A="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777474781; c=relaxed/relaxed;\n\tbh=LyEfA5FNl/DFpMB6+gbia31gvnxBFgRaBwATCzOtSNE=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=vNmZ39Ba2zS1YO5q+AX2cWFEwV4oD3cTNdQWct1QRkIuAFZrHi2puO3Ob/hhYTlQ9LhdmCkha86xv8lkqKV5RMKNuKL4F7QHrK+ZM2mwwZmH8BIPzzf93ZgRdNXBuJtx5kT8IRIXZMO2P1DPTy6+W7aIU65+9RtKgntejaRMkhb4B0hBDfwS1gxycsf/5SAWBrmaV+lEZsaKOEsxIYEaWCUt8g9qcgPPrdnTn0UHG0UtMmEZenMiCqaubdY6YMIvjw8il1zKNVoqnDl03SqLlkk/EAkH1HnHkWvaTUMg+yuk2hT/HapuKGMxdawWOlpv4c32gxVTaRdX4eQeYguHPA==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777474546; c=relaxed/simple;\n\tbh=vC0PqMOvfQp4AQ9S5lpIqmerdNSlZq9S5sto/3QKq6Q=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=CmPZOcYWiiDG+3UYEvqQT/wsvPO/ZpgWdd5zVZkFySegy80kR8LogZoXZTv9Bwk7h6zpRpCG/q1hG4/8L0lJP8x+j4UE2/WGDrOi8yQ+hh8d8SovS48bt6QZKUIg4R6odXng2FmdCxtEJYx+em5LTFPRBB94WOWOx8IF9KqOffE="
        ],
        "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=AIzn0dFv; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16201-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=AIzn0dFv; 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=1777474546;\n\tbh=vC0PqMOvfQp4AQ9S5lpIqmerdNSlZq9S5sto/3QKq6Q=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=AIzn0dFvxxN6taaTDgsG+af2pq8BulbgD1lU/kUXCfmB64ePZNen9JZtqYaXodtcH\n\t Y6pIgUUdcYziG+91dCiZdOOd9pgQBVNLrgg2OPhb42xWbL9NHaVJqKaXmzw2Qdt9bN\n\t 1p8lp3OJe857aByBKDh+022YrE8DCovc7WopruZQ1Xfd3tZOqvgI/N6PgppQ+XtaTP\n\t oASiaEZw0/pcEwJnFfl39+dkuMDVwJo5Hy7YDKAJ6EXbN32SIB39KaTpoeDDjaSoAB\n\t +3f0lFkXPM/jNia6LA3vbpFNfCnuk8XX5Defsaw402uxZ55oMJF2twIuOxy4LH/sS5\n\t VvWoGcWYjvEoA==",
        "Date": "Wed, 29 Apr 2026 07:55:45 -0700",
        "Subject": "[PATCH 12/19] fuse2fs: enable file IO to inline data files",
        "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": "<177747214752.4107473.16188658739141343172.stgit@frogsfrogsfrogs>",
        "In-Reply-To": "<177747214459.4107473.9520724883867588970.stgit@frogsfrogsfrogs>",
        "References": "<177747214459.4107473.9520724883867588970.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\nEnable file reads and writes from inline data files.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n fuse4fs/fuse4fs.c |    3 ++-\n misc/fuse2fs.c    |   42 ++++++++++++++++++++++++++++++++++++++++--\n 2 files changed, 42 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/fuse4fs/fuse4fs.c b/fuse4fs/fuse4fs.c\nindex 3c3debb6f60ac7..e2421dda75475a 100644\n--- a/fuse4fs/fuse4fs.c\n+++ b/fuse4fs/fuse4fs.c\n@@ -6566,7 +6566,8 @@ static int fuse4fs_iomap_begin_read(struct fuse4fs *ff, ext2_ino_t ino,\n {\n \t/* fall back to slow path for inline data reads */\n \tif (inode->i_flags & EXT4_INLINE_DATA_FL)\n-\t\treturn -ENOSYS;\n+\t\treturn fuse4fs_iomap_begin_inline(ff, ino, inode, pos, count,\n+\t\t\t\t\t\t  read);\n \n \tif (inode->i_flags & EXT4_EXTENTS_FL)\n \t\treturn fuse4fs_iomap_begin_extent(ff, ino, inode, pos, count,\ndiff --git a/misc/fuse2fs.c b/misc/fuse2fs.c\nindex 3c76eba683a10d..eecbf60a3360c6 100644\n--- a/misc/fuse2fs.c\n+++ b/misc/fuse2fs.c\n@@ -1846,7 +1846,16 @@ static void *op_init(struct fuse_conn_info *conn,\n \tcfg->use_ino = 1;\n \tif (ff->debug)\n \t\tcfg->debug = 1;\n-\tcfg->nullpath_ok = 1;\n+\n+\t/*\n+\t * Inline data file io depends on op_read/write being fed a path, so we\n+\t * have to slow everyone down to look up the path from the nodeid.\n+\t */\n+\tif (fuse2fs_iomap_enabled(ff) &&\n+\t    ext2fs_has_feature_inline_data(ff->fs->super))\n+\t\tcfg->nullpath_ok = 0;\n+\telse\n+\t\tcfg->nullpath_ok = 1;\n \n \tfuse2fs_detach_losetup(ff);\n \n@@ -3840,6 +3849,9 @@ static int op_read(const char *path EXT2FS_ATTR((unused)), char *buf,\n \t\t   size_t len, off_t offset,\n \t\t   struct fuse_file_info *fp)\n {\n+\tstruct fuse2fs_file_handle fhurk = {\n+\t\t.magic = FUSE2FS_FILE_MAGIC,\n+\t};\n \tstruct fuse2fs *ff = fuse2fs_get();\n \tstruct fuse2fs_file_handle *fh = fuse2fs_get_handle(fp);\n \text2_filsys fs;\n@@ -3849,10 +3861,21 @@ static int op_read(const char *path EXT2FS_ATTR((unused)), char *buf,\n \tint ret = 0;\n \n \tFUSE2FS_CHECK_CONTEXT(ff);\n+\n+\tif (!fh)\n+\t\tfh = &fhurk;\n+\n \tFUSE2FS_CHECK_HANDLE(ff, fh);\n \tdbg_printf(ff, \"%s: ino=%d off=0x%llx len=0x%zx\\n\", __func__, fh->ino,\n \t\t   (unsigned long long)offset, len);\n \tfs = fuse2fs_start(ff);\n+\n+\tif (fh == &fhurk) {\n+\t\tret = fuse2fs_file_ino(ff, path, NULL, &fhurk.ino);\n+\t\tif (ret)\n+\t\t\tgoto out;\n+\t}\n+\n \terr = ext2fs_file_open(fs, fh->ino, fh->open_flags, &efp);\n \tif (err) {\n \t\tret = translate_error(fs, fh->ino, err);\n@@ -3894,6 +3917,10 @@ static int op_write(const char *path EXT2FS_ATTR((unused)),\n \t\t    const char *buf, size_t len, off_t offset,\n \t\t    struct fuse_file_info *fp)\n {\n+\tstruct fuse2fs_file_handle fhurk = {\n+\t\t.magic = FUSE2FS_FILE_MAGIC,\n+\t\t.open_flags = EXT2_FILE_WRITE,\n+\t};\n \tstruct fuse2fs *ff = fuse2fs_get();\n \tstruct fuse2fs_file_handle *fh = fuse2fs_get_handle(fp);\n \text2_filsys fs;\n@@ -3903,6 +3930,10 @@ static int op_write(const char *path EXT2FS_ATTR((unused)),\n \tint ret = 0;\n \n \tFUSE2FS_CHECK_CONTEXT(ff);\n+\n+\tif (!fh)\n+\t\tfh = &fhurk;\n+\n \tFUSE2FS_CHECK_HANDLE(ff, fh);\n \tdbg_printf(ff, \"%s: ino=%d off=0x%llx len=0x%zx\\n\", __func__, fh->ino,\n \t\t   (unsigned long long) offset, len);\n@@ -3917,6 +3948,12 @@ static int op_write(const char *path EXT2FS_ATTR((unused)),\n \t\tgoto out;\n \t}\n \n+\tif (fh == &fhurk) {\n+\t\tret = fuse2fs_file_ino(ff, path, NULL, &fhurk.ino);\n+\t\tif (ret)\n+\t\t\tgoto out;\n+\t}\n+\n \terr = ext2fs_file_open(fs, fh->ino, fh->open_flags, &efp);\n \tif (err) {\n \t\tret = translate_error(fs, fh->ino, err);\n@@ -5860,7 +5897,8 @@ static int fuse2fs_iomap_begin_read(struct fuse2fs *ff, ext2_ino_t ino,\n {\n \t/* fall back to slow path for inline data reads */\n \tif (inode->i_flags & EXT4_INLINE_DATA_FL)\n-\t\treturn -ENOSYS;\n+\t\treturn fuse2fs_iomap_begin_inline(ff, ino, inode, pos, count,\n+\t\t\t\t\t\t  read);\n \n \tif (inode->i_flags & EXT4_EXTENTS_FL)\n \t\treturn fuse2fs_iomap_begin_extent(ff, ino, inode, pos, count,\n",
    "prefixes": [
        "12/19"
    ]
}