get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2228070,
    "url": "http://patchwork.ozlabs.org/api/patches/2228070/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260424-case-sensitivity-v11-12-de5619beddaf@oracle.com/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260424-case-sensitivity-v11-12-de5619beddaf@oracle.com>",
    "list_archive_url": null,
    "date": "2026-04-25T01:53:14",
    "name": "[v11,12/15] isofs: Implement fileattr_get for case sensitivity",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "55d87552d35fe63a7acddbb473cca6e0ab16f8d4",
    "submitter": {
        "id": 86689,
        "url": "http://patchwork.ozlabs.org/api/people/86689/?format=api",
        "name": "Chuck Lever",
        "email": "cel@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260424-case-sensitivity-v11-12-de5619beddaf@oracle.com/mbox/",
    "series": [
        {
            "id": 501417,
            "url": "http://patchwork.ozlabs.org/api/series/501417/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501417",
            "date": "2026-04-25T01:53:02",
            "name": "Exposing case folding behavior",
            "version": 11,
            "mbox": "http://patchwork.ozlabs.org/series/501417/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228070/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228070/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=Tq2a=CY=vger.kernel.org=linux-ext4+bounces-16094-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=U3pOlnwS;\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=tq2a=cy=vger.kernel.org=linux-ext4+bounces-16094-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.105.105.114 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=U3pOlnwS;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16094-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=\"U3pOlnwS\"",
            "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 4g2Xz25rP5z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 25 Apr 2026 11:57:50 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g2Xz25CyWz4w02\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 25 Apr 2026 11:57:50 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g2Xz24x3nz4wck; Sat, 25 Apr 2026 11:57:50 +1000 (AEST)",
            "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g2Xyy6lNgz4w02\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 25 Apr 2026 11:57:46 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id E8B88301EC6E\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 25 Apr 2026 01:54:22 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 3A127287254;\n\tSat, 25 Apr 2026 01:53:54 +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 EC7E423BF9F;\n\tSat, 25 Apr 2026 01:53:53 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 92C33C2BCB2;\n\tSat, 25 Apr 2026 01:53:51 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777082270; cv=pass;\n\tb=qLmaB79dqDJ9Gq4uHk8z4X3MzjdGgHt4uvBcKvaqPpwY8F55JgsiC4b5t8No74kMsAX128khx0hbanomwKp/FvC+DMwyQfihmRrhq/LDHH7KtAJ7AHrTvce6+rxsNkK2rLwan6G/qsFLf0UlDbsUnZiHMyqEdEYwsBEAvhfWLFrcSUdEkODq3vZ9JkOS85QMksHsNoVpUrEG8B7xD8/v5Iaw4UvAYdpvyIORnLYuJi9tv91zYMiCDEuPvzGVRe+XhQRWWKS4fsikl+/rgEI5EiHLHQyxZugw55/e14UiJltW/wC3BZkwrAeHZ9ba1sgK4Qs8/kUWjJMl35JOpQp+IA==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777082034; cv=none;\n b=UXkRooZQbqEUQH0+4SyCPc97EBeJTflfWRUbwy/MaOEfwcluI3LSYISzYxnad644wnF9F6CLsI2qXTEGAGgkL3kbg23Vpk6biGNxjgNzJoDrzE2Y0Zx5KdkOtCxpqNIaaKZn+qBJj6OaAL8mY7A3xXHDSeNy3srKhSQ4OanQwi8="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777082270; c=relaxed/relaxed;\n\tbh=M/7/V/k/Bmmpax7NK7kxqzrwsf3Kkw6njfEj/5j4DXc=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=OXb52+BMmY5cnxNZI11YooIewShm71j9bUOuiKNLyQAYdXQrbeHzmIv+W4txPeHjmwAlsQiDGHRwRC3vC8f2JfzKNSxEyUpUNR1877fLC266Q83+ufsuCCXaVUGLbdUqb5Wp8uGaLvCFYULIiIOozrirm8UgtFZUlFHhvnEctPLKABSKGyPpeUvnDyuIveZ59rySEE/1d1U+fEBQrQh9g75cb38y8s4M/0d8eEziL7YN7QmXIGJUHorJDy+kgUbYofUVRRnfpbbU374cHznPpA7JvRAlP76a94hJafk+RrV/SRX9xIEKGJ8xr3/+zEEB9wS2/eO5MglETkHQvP1yPw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777082034; c=relaxed/simple;\n\tbh=a2oUrA0xe//8KXon7nK7LgDRTlRSr3NVpBGjFd6WwfA=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=cnTiq9oahMm27ko8jstxl5j4EPH6dPl/KnCle+wdADBiybcYAwBM4Y2n+uzeTQ53eo4mTCKI+ObZxWQkYAFDxHTH/JyQ/w1bNA3jFNmRTSR7SMC2/1olcFItidR/ONtKXx49IToGJW82aE0oOgZTCY07VUGa3hUh3cYp8g4fHsM="
        ],
        "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=U3pOlnwS; dkim-atps=neutral;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16094-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=U3pOlnwS; 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=1777082033;\n\tbh=a2oUrA0xe//8KXon7nK7LgDRTlRSr3NVpBGjFd6WwfA=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=U3pOlnwSxVJOTPZCG1rItktWaaT+CJXRd9dITPdS9ijvMcfdNFdGR6FZyX0UQDHa2\n\t XNl9nHoebtbyi62S+XY9NFTbI93SO6ajt8XK+WGATwifUUvTj7y0JOZOfy9AZai36Z\n\t QUqbiO/jVvZ9oC785y6vsupXySSjok5gDqbs7fqEk632z5tFI7eEb0U4RXwavQms65\n\t ElCAyV/ab8+R7tAyOhj4FongoS7ndytQFJu3Nor8/ToZJ61nXa2s8Vc49JuUuiSF4L\n\t HIIloSmOIBc7SFSpY9w/2OZQyh7NwiKtLvcEmQaPgx39usg00h9PtKJXSgRTKWulQP\n\t nQAPf4+3yFhTg==",
        "From": "Chuck Lever <cel@kernel.org>",
        "Date": "Fri, 24 Apr 2026 21:53:14 -0400",
        "Subject": "[PATCH v11 12/15] isofs: Implement fileattr_get for case\n sensitivity",
        "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",
        "Message-Id": "<20260424-case-sensitivity-v11-12-de5619beddaf@oracle.com>",
        "References": "<20260424-case-sensitivity-v11-0-de5619beddaf@oracle.com>",
        "In-Reply-To": "<20260424-case-sensitivity-v11-0-de5619beddaf@oracle.com>",
        "To": "Al Viro <viro@zeniv.linux.org.uk>,\n Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>",
        "Cc": "linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,\n linux-xfs@vger.kernel.org, linux-cifs@vger.kernel.org,\n linux-nfs@vger.kernel.org, linux-api@vger.kernel.org,\n linux-f2fs-devel@lists.sourceforge.net, hirofumi@mail.parknet.co.jp,\n linkinjeon@kernel.org, sj1557.seo@samsung.com, yuezhang.mo@sony.com,\n almaz.alexandrovich@paragon-software.com, slava@dubeyko.com,\n glaubitz@physik.fu-berlin.de, frank.li@vivo.com, tytso@mit.edu,\n adilger.kernel@dilger.ca, cem@kernel.org, sfrench@samba.org,\n pc@manguebit.org, ronniesahlberg@gmail.com, sprasad@microsoft.com,\n trondmy@kernel.org, anna@kernel.org, jaegeuk@kernel.org, chao@kernel.org,\n hansg@kernel.org, senozhatsky@chromium.org,\n Chuck Lever <chuck.lever@oracle.com>,\n Roland Mainz <roland.mainz@nrubsig.org>",
        "X-Mailer": "b4 0.16-dev",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=4581;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=mSjVyU0+7gMxVOpF8jjeXoK0ARUH2lVZI4wCKuXJ6hY=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp7B6Rt/F187q66PiYnbIHIdzE1i9SQMnias3kh\n kph+eacFZmJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaewekQAKCRAzarMzb2Z/\n l8ZCEACdBgejkIxR+MOjjazHhQE0Xe0Bphrmcgr3a8BAlqU+JfW4oyWYpCg6A13uPzS/70Glcia\n NEAueRbIy8hlIc3d/PikUCXr2w5eDsCPVMxujl+SE/PC1pK8PYFDdJUq4N4ZZ02u+kZ5XRNO7bp\n Qk6iQW9nTTtadaIYIniKTlyp6zSldA4C9N7UJ9Zr9XHuTnHvhz5ZNF/n7OVjUOsjx02RpoBM4Vx\n zTv6aOULc6CBZMVe+pqlBxY9n6BM/Mx+Kg1h6ueqwODwqzOGN8rAqKedSNfAnXnTHbWgfwzGOmA\n QFayP5c7JpTE9Ive/TaGi6DnaxT6M6y2YOpMPd1oMS4ZzFv6Dd/fm6BTzzh3Tz1srYSPZSLOvHW\n n0hGZDjwrYCn8Qxl/cGaXLr7Xz04rC9G5HGPUanUeOcfUPkfNVzOq1zI3S37/Q62wOolsz+TEQC\n IsEjcFFO73LZGhHyQLG83nuJ7O1KakwQOp0W52vglJSxGJgA0/h16MpkjhtbZr5gZ7oKcwWXFhx\n uVijk4t0wbczoQGfMWd20yKploZicGSdV4fyylTSBSKVkEmNbzbEkfh11mJq4C8Y9Vzx5Zo3Iif\n HB2KPWCcuQgewuLpAR/BX6EJDe0WANNoxBH3tO3QdFUjvl8hgOk09W5/XsslBhIbReLK4+szKkw\n x5Wb8RRoYF7ci1Q==",
        "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97",
        "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: Chuck Lever <chuck.lever@oracle.com>\n\nUpper layers such as NFSD need a way to query whether a\nfilesystem handles filenames in a case-sensitive manner so\nthey can provide correct semantics to remote clients. Without\nthis information, NFS exports of ISO 9660 filesystems cannot\nadvertise their filename case behavior.\n\nImplement isofs_fileattr_get() to report ISO 9660 case handling\nbehavior via the FS_XFLAG_CASEFOLD flag. The 'check=r' (relaxed)\nmount option enables case-insensitive lookups, and this setting\ndetermines the value reported. By default, Joliet extensions\noperate in relaxed mode while plain ISO 9660 uses strict\n(case-sensitive) mode. All ISO 9660 variants are case-preserving,\nmeaning filenames are stored exactly as they appear on the disc.\n\nCase handling is a superblock-wide property, so the callback\nmust report the same value for every inode type. Regular files\npreviously had no inode_operations; introduce\nisofs_file_inode_operations to carry the callback. Symlinks\npreviously shared page_symlink_inode_operations; introduce\nisofs_symlink_inode_operations, which wires page_get_link\nalongside the callback, so that fileattr queries on a symlink\nreach the isofs implementation instead of returning\n-ENOIOCTLCMD. The flag is set in both fa->fsx_xflags and\nfa->flags so FS_IOC_FSGETXATTR and FS_IOC_GETFLAGS agree.\n\nReviewed-by: Jan Kara <jack@suse.cz>\nReviewed-by: Roland Mainz <roland.mainz@nrubsig.org>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/isofs/dir.c   | 24 ++++++++++++++++++++++++\n fs/isofs/inode.c |  3 ++-\n fs/isofs/isofs.h |  5 +++++\n 3 files changed, 31 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/fs/isofs/dir.c b/fs/isofs/dir.c\nindex 2fd9948d606e..1db6b0db3808 100644\n--- a/fs/isofs/dir.c\n+++ b/fs/isofs/dir.c\n@@ -14,6 +14,7 @@\n #include <linux/gfp.h>\n #include <linux/filelock.h>\n #include \"isofs.h\"\n+#include <linux/fileattr.h>\n \n int isofs_name_translate(struct iso_directory_record *de, char *new, struct inode *inode)\n {\n@@ -267,6 +268,17 @@ static int isofs_readdir(struct file *file, struct dir_context *ctx)\n \treturn result;\n }\n \n+int isofs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)\n+{\n+\tstruct isofs_sb_info *sbi = ISOFS_SB(dentry->d_sb);\n+\n+\tif (sbi->s_check == 'r') {\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\t\tfa->flags |= FS_CASEFOLD_FL;\n+\t}\n+\treturn 0;\n+}\n+\n const struct file_operations isofs_dir_operations =\n {\n \t.llseek = generic_file_llseek,\n@@ -281,6 +293,18 @@ const struct file_operations isofs_dir_operations =\n const struct inode_operations isofs_dir_inode_operations =\n {\n \t.lookup = isofs_lookup,\n+\t.fileattr_get = isofs_fileattr_get,\n+};\n+\n+const struct inode_operations isofs_file_inode_operations =\n+{\n+\t.fileattr_get = isofs_fileattr_get,\n+};\n+\n+const struct inode_operations isofs_symlink_inode_operations =\n+{\n+\t.get_link = page_get_link,\n+\t.fileattr_get = isofs_fileattr_get,\n };\n \n \ndiff --git a/fs/isofs/inode.c b/fs/isofs/inode.c\nindex efee53717f1c..68c286b7cc35 100644\n--- a/fs/isofs/inode.c\n+++ b/fs/isofs/inode.c\n@@ -1427,6 +1427,7 @@ static int isofs_read_inode(struct inode *inode, int relocated)\n \n \t/* Install the inode operations vector */\n \tif (S_ISREG(inode->i_mode)) {\n+\t\tinode->i_op = &isofs_file_inode_operations;\n \t\tinode->i_fop = &generic_ro_fops;\n \t\tswitch (ei->i_file_format) {\n #ifdef CONFIG_ZISOFS\n@@ -1442,7 +1443,7 @@ static int isofs_read_inode(struct inode *inode, int relocated)\n \t\tinode->i_op = &isofs_dir_inode_operations;\n \t\tinode->i_fop = &isofs_dir_operations;\n \t} else if (S_ISLNK(inode->i_mode)) {\n-\t\tinode->i_op = &page_symlink_inode_operations;\n+\t\tinode->i_op = &isofs_symlink_inode_operations;\n \t\tinode_nohighmem(inode);\n \t\tinode->i_data.a_ops = &isofs_symlink_aops;\n \t} else if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) ||\ndiff --git a/fs/isofs/isofs.h b/fs/isofs/isofs.h\nindex 506555837533..a3cda3430020 100644\n--- a/fs/isofs/isofs.h\n+++ b/fs/isofs/isofs.h\n@@ -197,7 +197,12 @@ isofs_normalize_block_and_offset(struct iso_directory_record* de,\n \t}\n }\n \n+struct file_kattr;\n+int isofs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);\n+\n extern const struct inode_operations isofs_dir_inode_operations;\n+extern const struct inode_operations isofs_file_inode_operations;\n+extern const struct inode_operations isofs_symlink_inode_operations;\n extern const struct file_operations isofs_dir_operations;\n extern const struct address_space_operations isofs_symlink_aops;\n extern const struct export_operations isofs_export_ops;\n",
    "prefixes": [
        "v11",
        "12/15"
    ]
}