get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230322,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230322/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747215544.4110156.9861127440007449277.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": "<177747215544.4110156.9861127440007449277.stgit@frogsfrogsfrogs>",
    "date": "2026-04-29T15:00:57",
    "name": "[09/10] fuse2fs: set sync, immutable, and append at file load time",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7025c26d64a7407101597cf3b13b185078bc0b08",
    "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/177747215544.4110156.9861127440007449277.stgit@frogsfrogsfrogs/mbox/",
    "series": [
        {
            "id": 502091,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502091/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502091",
            "date": "2026-04-29T14:59:24",
            "name": "[01/10] fuse2fs: add strictatime/lazytime mount options",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502091/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230322/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230322/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=vqo+=C4=vger.kernel.org=linux-ext4+bounces-16221-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=KlHyhaLy;\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=vqo+=c4=vger.kernel.org=linux-ext4+bounces-16221-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.232.135.74 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=KlHyhaLy;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16221-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=\"KlHyhaLy\"",
            "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 4g5L9H1mkrz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:01:23 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5L9H1Hgkz4wHs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:01:23 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g5L9H1ChPz4wQg; Thu, 30 Apr 2026 01:01:23 +1000 (AEST)",
            "from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\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 4g5L9952g7z4wHs\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 01:01:17 +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 4F0E030089B1\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 15:01:05 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 719B63750AF;\n\tWed, 29 Apr 2026 15:00:59 +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 B2594361DA2;\n\tWed, 29 Apr 2026 15:00:58 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 3CC7BC19425;\n\tWed, 29 Apr 2026 15:00:58 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777474883; cv=pass;\n\tb=VBvgQ2quJghuK6vHii3bO/SiSwQxYAfhlcD98ksqO0wBCMSbmSzMMTRk0HELNo9aAT25aQPdqV9tmo63CPFr86uwRBDBNEGvXEdXy1ME/QkabDRzYc2sZm/PJtCM6TZ5Ca5ACvVvuj2XFh/P9fDmCHslg2kywdb7BjeIHzYP/K8S0FVBHJ558F/hN9kuv1pBS9uLDaxqKuO/S0c3SJJEOq2s/WHn0BI0nXsxok2ryb1PM1w8oYT0+P4/7hBR+za6CwYf/qdDF2xLsLL/Ut7+uCow3rr3MzCP1C/V1vlciCUWiFxlpEX394PUi1pRu7G1ubCrE0Fhe7AD/Trvp9POsg==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777474858; cv=none;\n b=Vzy3y7V+fUp5xTMoWx8OzaeuqJPI/uu3tywr0A3HQWItTfUYZN4fIBm9QKorSWyMjH3giy+ny3S32RGEDVB4fqw3A8JYz6Udqwz1yYzAjXraFWr0hSLsYuwLz/3XDeTrokDE+TCDiKBMqzc0J3gqevtujnJ3Oo/CqornrdOgN2g="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777474883; c=relaxed/relaxed;\n\tbh=GS1cfOkFdoCGWoWTQQQxB9kmKHCrmIgikCIXVRnNc/E=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=iS5epDHm7d+TgE0UcmyisAQF5XrWYetAaxUHlVLUF+/AQFXL3VLib3SKIe6mL1QthnSsyoYnnskBa7/DvHHNMrtdwSqp40Ogn+KPDuauphtpM9eBXv40981YnBQmo6lQalXYawWMo9gBYjyFJxeffVG3hdiT7eSDSUyEfvn66rS2SnmmUnmTz/fl17vHjhnyvHwItViMgmLHTjr+tzOrbP+M/gHGofo3dBKfTiW/LVIUE8Iob9h5ulhiZ/JJ4O9yYgRsGUZsINr+1lNJV8dWV5/bt6707Cz78krNEzC46ts/xxi8TeGhotir5ux4rw3K3lVqABbXMRaOrXzUSWdYkg==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777474858; c=relaxed/simple;\n\tbh=NhaC0QNCt71AY0orHcuq9ayVQKStY2oGN6eFZ3zXh4w=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=jA5gkN52SNBPF1N1+FCBijuurFBlabXZHsPi5YojS6ms9klkScbqknVAdrxNpxiGQDzwI3zYxu/m5co2WdxIehVedX7CjMfTnCRmqBTwDQjsC6RqKdde7Jj4BBU9D0MTMpab4PT3Ygxf50JOwHBLP1fcGpZpPN1YI1IrQySepC4="
        ],
        "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=KlHyhaLy; dkim-atps=neutral;\n spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16221-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=KlHyhaLy; 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=1777474858;\n\tbh=NhaC0QNCt71AY0orHcuq9ayVQKStY2oGN6eFZ3zXh4w=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=KlHyhaLyo6nOsj7GOQsrNj94KBLhUplK3HJEw2BTYKRQ9MF2xCVZQeHlWLoqDPa2q\n\t UhkP/gAuGCH3eIZhX/wC0jh3gmt2niPZtxkigyHz2IEsev2OHwAyrusoyIpjbfLVPz\n\t v4pBP1JdHpn8nX1t6bU2Fmy+ifg6OM9H5YnHcRY+FTCkCh4P++mQhZ4hfkuqkp+2lG\n\t lKmX2e6T4buST5UHpoblPaKgKGPfDdBqynfFlmkWr2dc43qo/c8Xj83ZnxK8oLMR33\n\t WojPl/oRv2ytxbKrYunBxqpgjbfJNlEzre4hyipm3B91hAO06m/Mw7ohL0PWB+cu1B\n\t Yosa9oi005pMg==",
        "Date": "Wed, 29 Apr 2026 08:00:57 -0700",
        "Subject": "[PATCH 09/10] fuse2fs: set sync, immutable,\n and append at file load time",
        "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": "<177747215544.4110156.9861127440007449277.stgit@frogsfrogsfrogs>",
        "In-Reply-To": "<177747215344.4110156.17216553139316774040.stgit@frogsfrogsfrogs>",
        "References": "<177747215344.4110156.17216553139316774040.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\nConvey these three inode flags to the kernel when we're loading a file.\nThis way the kernel can advertise and enforce those flags so that the\nfuse server doesn't have to.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n fuse4fs/fuse4fs.c |   16 ++++++++++++++++\n misc/fuse2fs.c    |   53 ++++++++++++++++++++++++++++++++++++++---------------\n 2 files changed, 54 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/fuse4fs/fuse4fs.c b/fuse4fs/fuse4fs.c\nindex 51958d6677288c..b4105333f4fe22 100644\n--- a/fuse4fs/fuse4fs.c\n+++ b/fuse4fs/fuse4fs.c\n@@ -2441,6 +2441,22 @@ static int fuse4fs_stat_inode(struct fuse4fs *ff, ext2_ino_t ino,\n \tentry->entry_timeout = FUSE4FS_ATTR_TIMEOUT;\n \n \tfstat->iflags = 0;\n+\n+#ifdef FUSE_IFLAG_SYNC\n+\tif (inodep->i_flags & EXT2_SYNC_FL)\n+\t\tfstat->iflags |= FUSE_IFLAG_SYNC;\n+#endif\n+\n+#ifdef FUSE_IFLAG_IMMUTABLE\n+\tif (inodep->i_flags & EXT2_IMMUTABLE_FL)\n+\t\tfstat->iflags |= FUSE_IFLAG_IMMUTABLE;\n+#endif\n+\n+#ifdef FUSE_IFLAG_APPEND\n+\tif (inodep->i_flags & EXT2_APPEND_FL)\n+\t\tfstat->iflags |= FUSE_IFLAG_APPEND;\n+#endif\n+\n #ifdef HAVE_FUSE_IOMAP\n \tif (fuse4fs_iomap_enabled(ff)) {\n \t\tfstat->iflags |= FUSE_IFLAG_IOMAP | FUSE_IFLAG_EXCLUSIVE;\ndiff --git a/misc/fuse2fs.c b/misc/fuse2fs.c\nindex 026c547618b5cd..6e4780121d5c83 100644\n--- a/misc/fuse2fs.c\n+++ b/misc/fuse2fs.c\n@@ -1956,7 +1956,7 @@ static void *op_init(struct fuse_conn_info *conn,\n }\n \n static int fuse2fs_stat(struct fuse2fs *ff, ext2_ino_t ino,\n-\t\t\tstruct stat *statbuf)\n+\t\t\tstruct stat *statbuf, unsigned int *iflags)\n {\n \tstruct ext2_inode_large inode;\n \text2_filsys fs = ff->fs;\n@@ -2013,6 +2013,7 @@ static int fuse2fs_stat(struct fuse2fs *ff, ext2_ino_t ino,\n \t\t\tstatbuf->st_rdev = inode.i_block[1];\n \t}\n \n+\t*iflags = inode.i_flags;\n \treturn ret;\n }\n \n@@ -2047,22 +2048,31 @@ static int __fuse2fs_file_ino(struct fuse2fs *ff, const char *path,\n # define fuse2fs_file_ino(ff, path, fp, inop) \\\n \t__fuse2fs_file_ino((ff), (path), (fp), (inop), __func__, __LINE__)\n \n+static int fuse2fs_getattr(struct fuse2fs *ff, const char *path,\n+\t\t\t   struct stat *statbuf, struct fuse_file_info *fi,\n+\t\t\t   unsigned int *iflags)\n+{\n+\text2_ino_t ino;\n+\tint ret = 0;\n+\n+\tFUSE2FS_CHECK_CONTEXT(ff);\n+\tfuse2fs_start(ff);\n+\tret = fuse2fs_file_ino(ff, path, fi, &ino);\n+\tif (ret)\n+\t\tgoto out;\n+\tret = fuse2fs_stat(ff, ino, statbuf, iflags);\n+out:\n+\tfuse2fs_finish(ff, ret);\n+\treturn ret;\n+}\n+\n static int op_getattr(const char *path, struct stat *statbuf,\n \t\t      struct fuse_file_info *fi)\n {\n \tstruct fuse2fs *ff = fuse2fs_get();\n-\text2_ino_t ino;\n-\tint ret = 0;\n+\tunsigned int dontcare;\n \n-\tFUSE2FS_CHECK_CONTEXT(ff);\n-\tfuse2fs_start(ff);\n-\tret = fuse2fs_file_ino(ff, path, fi, &ino);\n-\tif (ret)\n-\t\tgoto out;\n-\tret = fuse2fs_stat(ff, ino, statbuf);\n-out:\n-\tfuse2fs_finish(ff, ret);\n-\treturn ret;\n+\treturn fuse2fs_getattr(ff, path, statbuf, fi, &dontcare);\n }\n \n #if FUSE_VERSION >= FUSE_MAKE_VERSION(3, 99)\n@@ -2070,11 +2080,21 @@ static int op_getattr_iflags(const char *path, struct stat *statbuf,\n \t\t\t     unsigned int *iflags, struct fuse_file_info *fi)\n {\n \tstruct fuse2fs *ff = fuse2fs_get();\n-\tint ret = op_getattr(path, statbuf, fi);\n+\tunsigned int i_flags;\n+\tint ret = fuse2fs_getattr(ff, path, statbuf, fi, &i_flags);\n \n \tif (ret)\n \t\treturn ret;\n \n+\tif (i_flags & EXT2_SYNC_FL)\n+\t\t*iflags |= FUSE_IFLAG_SYNC;\n+\n+\tif (i_flags & EXT2_IMMUTABLE_FL)\n+\t\t*iflags |= FUSE_IFLAG_IMMUTABLE;\n+\n+\tif (i_flags & EXT2_APPEND_FL)\n+\t\t*iflags |= FUSE_IFLAG_APPEND;\n+\n \tif (fuse_fs_can_enable_iomap(statbuf)) {\n \t\t*iflags |= FUSE_IFLAG_IOMAP | FUSE_IFLAG_EXCLUSIVE;\n \n@@ -3844,12 +3864,13 @@ static int fuse2fs_punch_posteof(struct fuse2fs *ff, ext2_ino_t ino,\n static int fuse2fs_file_uses_iomap(struct fuse2fs *ff, ext2_ino_t ino)\n {\n \tstruct stat statbuf;\n+\tunsigned int dontcare;\n \tint ret;\n \n \tif (!fuse2fs_iomap_enabled(ff))\n \t\treturn 0;\n \n-\tret = fuse2fs_stat(ff, ino, &statbuf);\n+\tret = fuse2fs_stat(ff, ino, &statbuf, &dontcare);\n \tif (ret)\n \t\treturn ret;\n \n@@ -4758,7 +4779,9 @@ static int op_readdir_iter(ext2_ino_t dir EXT2FS_ATTR((unused)),\n \t\t\t(unsigned long long)i->dirpos);\n \n \tif (i->flags == FUSE_READDIR_PLUS) {\n-\t\tret = fuse2fs_stat(i->ff, dirent->inode, &stat);\n+\t\tunsigned int dontcare;\n+\n+\t\tret = fuse2fs_stat(i->ff, dirent->inode, &stat, &dontcare);\n \t\tif (ret)\n \t\t\treturn DIRENT_ABORT;\n \t}\n",
    "prefixes": [
        "09/10"
    ]
}