get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229431,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229431/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260428083332.768693-19-aalbersh@kernel.org/",
    "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": "<20260428083332.768693-19-aalbersh@kernel.org>",
    "date": "2026-04-28T08:33:24",
    "name": "[v9,18/22] xfs: add fs-verity ioctls",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b3c55dd8fd24075dbcb1878d5c473193fe4f40ca",
    "submitter": {
        "id": 92821,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/92821/?format=api",
        "name": "Andrey Albershteyn",
        "email": "aalbersh@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260428083332.768693-19-aalbersh@kernel.org/mbox/",
    "series": [
        {
            "id": 501796,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501796/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501796",
            "date": "2026-04-28T08:33:09",
            "name": "[v9,01/22] fsverity: report validation errors through fserror to fsnotify",
            "version": 9,
            "mbox": "http://patchwork.ozlabs.org/series/501796/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229431/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229431/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <SRS0=yJYD=C3=vger.kernel.org=linux-ext4+bounces-16164-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=IprwRXJC;\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=yjyd=c3=vger.kernel.org=linux-ext4+bounces-16164-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.234.253.10 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=IprwRXJC;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16164-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=\"IprwRXJC\"",
            "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 4g4YwS2y5Zz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 18:47:36 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g4YwS2Vs1z4wLT\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 18:47:36 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g4YwS2Rvrz4wLl; Tue, 28 Apr 2026 18:47:36 +1000 (AEST)",
            "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\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 4g4YwN6fLLz4wLT\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 18:47:32 +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 67D7130AC4CF\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 08:36:36 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 20D353DDDAC;\n\tTue, 28 Apr 2026 08:34:49 +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 D51113D410C;\n\tTue, 28 Apr 2026 08:34:48 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 47857C4AF0C;\n\tTue, 28 Apr 2026 08:34:46 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777366056; cv=pass;\n\tb=hLYnQuprUlBxlyNOGO446DF0lVNgmj7pvf+X+wM2sK14GdG693LBeE02rWWUsTZTgCxWVzk2GGC5CZSsu80gxupf6joNSk3vZz14DbPP5cw8RfNvtwZp7lUdkAMXvjDNihAHKBr2JYyOrql+T50J8p/BVrPqHOgPIvcadrvHu1dlm9F1WVYzdosyct32TdmShdqPsoBY7uTQwxjpmzss7GIfy8J1cKgXLR+NeXtYbywbIbWhu/znJtjBG2p42Tfh8gOH/dIvhhTYyDte2h+uiX2TZINj62suhbj98qgylYtPoarpYU9UDRwHfOB4hRgNlmJcy3Fpz7JPip6KyMZ8Kw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777365288; cv=none;\n b=qRIOOtoX+rzELSBIFFR0DfSmjWo7BACTVx3ZpsJQ2tHEEpKfI6ySEbcyJSv7yqkhCwwgiVg9gRwMW23GaUGFVBIYBt9TTH5AoHElIFBsWIQX/HVDykQIdjRgLpUa42sPXxJznUC3Hm1YrtW4FvH5ssX5XnJtN/ASnM5GCoynONo="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777366056; c=relaxed/relaxed;\n\tbh=8khfHPPTDYOvTysJ7YcmpQXZ+97vXVSzPPzSexF7G6w=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=ARN/YePmOrYuzdrjB6ZldU3b+o4IJeP2+VlbQyPDHS0HziKc7WAtFMY992F02H90QL2XZahUl+uTFqo2cQ0f/SFdhtIxUPRG2Qo0OPYLXS5n0pgCBHp4gX3tVOK3vMt9ZHZfwivP+gZX7UuZEGSsRD+KwF36Yi/KQCjX+y5M0eBnAc1j/7bnpwuiFtQHpwPN2VVnJMiniRprsS4kv/gWGros4S8m8R78gaxG46NrOauFJzJKQWjO2m5DZ8zJOjBi284pkV9kzRIBApm9SDRssfskOTbilUhKHQbx5STr0X1y2SpyNLXEZAB34nDipUN8mwA6WMT/CGl4IhIpOjzVHw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777365288; c=relaxed/simple;\n\tbh=Aq0ZUSqSUefcts6LfugDkZmOSMW+4m4ueZMlzDmeXr4=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Jd2G53HF+mw+/W4NU23H9lsi34iK/xmz6UoDpI7cfpkaZZKgqyvunkvhMyMYQClxkak1uUzfzo0RmpkCd2zEokhhdA7K5dhS7w/QnmU0O0ytwcnzLjsYUw540epiu7HpSxvotTVf0T86s0gMLQ/kR73aPUtBo5r9+5bX+v8UlZE="
        ],
        "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=IprwRXJC; dkim-atps=neutral;\n spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16164-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=IprwRXJC; 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=1777365288;\n\tbh=Aq0ZUSqSUefcts6LfugDkZmOSMW+4m4ueZMlzDmeXr4=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=IprwRXJCWRo55iClilMfq2t3DPMoB2rvZ3Fzl0J+HO6tOVe19cTJxslCXwj4MqxKF\n\t yuQEhDLqK5hmKf86In0+zG5J/5gkdOCa/IlHep/aFi0MbJoa2rsezYxGz0IHkmr3Tr\n\t iPlrV35uLHTdczcCJmwx69CNVekNRBKZInEXq+8tPTpCvb69VlkFvgjP3KEcTtA5v0\n\t /ywciA+bjYE8LKf07iwoJ0gm2hYE3B8kMDASbd0pi+zVjOjYG7+fr3nwTVBCQ/lRWV\n\t N9/SBo/0UjxNy7ytKqnWDFdEaNhm23TiluKY9nIKNyJDXKh0qN1DUw2XXphGL3Fn7F\n\t M9XMxixyDor1w==",
        "From": "Andrey Albershteyn <aalbersh@kernel.org>",
        "To": "linux-xfs@vger.kernel.org,\n\tfsverity@lists.linux.dev,\n\tlinux-fsdevel@vger.kernel.org,\n\tebiggers@kernel.org",
        "Cc": "Andrey Albershteyn <aalbersh@kernel.org>,\n\thch@lst.de,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\tlinux-btrfs@vger.kernel.org,\n\tlinux-unionfs@vger.kernel.org,\n\tdjwong@kernel.org",
        "Subject": "[PATCH v9 18/22] xfs: add fs-verity ioctls",
        "Date": "Tue, 28 Apr 2026 10:33:24 +0200",
        "Message-ID": "<20260428083332.768693-19-aalbersh@kernel.org>",
        "X-Mailer": "git-send-email 2.51.2",
        "In-Reply-To": "<20260428083332.768693-1-aalbersh@kernel.org>",
        "References": "<20260428083332.768693-1-aalbersh@kernel.org>",
        "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-Transfer-Encoding": "8bit",
        "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": "Add fs-verity ioctls to enable, dump metadata (descriptor and Merkle\ntree pages) and obtain file's digest.\n\n[djwong: remove unnecessary casting]\n\nSigned-off-by: Darrick J. Wong <djwong@kernel.org>\nReviewed-by: Christoph Hellwig <hch@lst.de>\nSigned-off-by: Andrey Albershteyn <aalbersh@kernel.org>\n---\n fs/xfs/xfs_ioctl.c | 14 ++++++++++++++\n 1 file changed, 14 insertions(+)",
    "diff": "diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c\nindex facffdc8dca8..e633d56cad00 100644\n--- a/fs/xfs/xfs_ioctl.c\n+++ b/fs/xfs/xfs_ioctl.c\n@@ -46,6 +46,7 @@\n \n #include <linux/mount.h>\n #include <linux/fileattr.h>\n+#include <linux/fsverity.h>\n \n /* Return 0 on success or positive error */\n int\n@@ -1426,6 +1427,19 @@ xfs_file_ioctl(\n \tcase XFS_IOC_VERIFY_MEDIA:\n \t\treturn xfs_ioc_verify_media(filp, arg);\n \n+\tcase FS_IOC_ENABLE_VERITY:\n+\t\tif (!xfs_has_verity(mp))\n+\t\t\treturn -EOPNOTSUPP;\n+\t\treturn fsverity_ioctl_enable(filp, arg);\n+\tcase FS_IOC_MEASURE_VERITY:\n+\t\tif (!xfs_has_verity(mp))\n+\t\t\treturn -EOPNOTSUPP;\n+\t\treturn fsverity_ioctl_measure(filp, arg);\n+\tcase FS_IOC_READ_VERITY_METADATA:\n+\t\tif (!xfs_has_verity(mp))\n+\t\t\treturn -EOPNOTSUPP;\n+\t\treturn fsverity_ioctl_read_metadata(filp, arg);\n+\n \tdefault:\n \t\treturn -ENOTTY;\n \t}\n",
    "prefixes": [
        "v9",
        "18/22"
    ]
}