get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227000,
    "url": "http://patchwork.ozlabs.org/api/patches/2227000/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260422-case-sensitivity-v9-10-be023cc070e2@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": "<20260422-case-sensitivity-v9-10-be023cc070e2@oracle.com>",
    "list_archive_url": null,
    "date": "2026-04-22T23:30:04",
    "name": "[v9,10/17] cifs: Implement fileattr_get for case sensitivity",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "b517beaad29cf08b55eb8dea11a98d367e9c20a4",
    "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/20260422-case-sensitivity-v9-10-be023cc070e2@oracle.com/mbox/",
    "series": [
        {
            "id": 501129,
            "url": "http://patchwork.ozlabs.org/api/series/501129/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501129",
            "date": "2026-04-22T23:29:54",
            "name": "Exposing case folding behavior",
            "version": 9,
            "mbox": "http://patchwork.ozlabs.org/series/501129/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227000/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227000/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=N0YY=CV=vger.kernel.org=linux-ext4+bounces-16027-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=vE9qOI1S;\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=n0yy=cv=vger.kernel.org=linux-ext4+bounces-16027-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=vE9qOI1S;\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-16027-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=\"vE9qOI1S\"",
            "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 4g1Ftn0dQ7z1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 09:34: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 4g1Ftn0BW4z4wCZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 09:34:41 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4g1Ftn07p8z4wHx; Thu, 23 Apr 2026 09:34: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 4g1Ftj4LBxz4wCZ\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 23 Apr 2026 09:34: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 91F7D3123214\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 22 Apr 2026 23:30:42 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B75873A3E88;\n\tWed, 22 Apr 2026 23:30:41 +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 72A163A1E9B;\n\tWed, 22 Apr 2026 23:30:41 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id E69EEC2BCB4;\n\tWed, 22 Apr 2026 23:30:38 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1776900880; cv=pass;\n\tb=XnTyYTTTdCpvsZF///rGQAzPSjSFsqt/4DkAT6spiyB+nFvBixXkOjlu2k1hTHPGnHKsXmLqrb2A9OS6LL94Gl7zBeejCWMlLoLhPAh8YK7A2nO55L7xgYsL2hoPcY4wbE23rPHr9I9iO68wC4GWk0iNwGgul6x9A2WtgsAEDILOaM2YIxISvBYBV43zo25h2e9CjfYp2ehYW6KQAapK7aRSFbrTuFvT5Zgn42LzY/sfe/tB1ojUZvTUwSOoxWl1AVCNDXrKfv/ZNmmWiyrCIVU2353apbBblOZdRrr3kAytayS0G/ELcgS8xR9RGM4oo3wprKRbjmrakoxEnuCkbQ==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776900641; cv=none;\n b=Qcfnk9jLuzk0ZSPk3QGT/ef2XNjoWaDde9EKKwiw3bbxxxIdH2x48MOxesN+M6ZjSWu0CcZyd2bjbmk8MgGpxcrvubMxDKseVQirK7zbCsNY2kBw/HjN+n1zGK4ps/7F/SRkjhl1VGjP3vwE+kyMFAwVcfdBs7XyfGThZ6sHnEE="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1776900880; c=relaxed/relaxed;\n\tbh=S6+imjlL7+BXTjIfYyqGCuBDg6ro6Dr3lwiwezjgAWA=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=mdK9kKsOVXsYmqtjAc+EFJIkpnM1QHJHV3M1PKVBojQB4ZaH/R7fONKnpp2n9km7OpnY8bfEERfOWc3hIzQHOW/9uz9fP7D2pU+e+WwyeZyg0NNqLurkuBmrJxbrLY1/zIsOmIE3lMsGCcPNhVIPSnZ+RxB6M8i1IhKcaaHo9Qn17wxw1LgiR05Qx8ioZvsy6IZT/ChGENdy7tv2uioPG0jRI/H0kE0QeuRN/XBtaFT6tX9mLCffUUYdPIuiDqmr5kzNOBEPz/IOMEkKOyD9f1rZN/cm25okck3VzCub/mnP2ZLq3QVVgkwkIBcFj9KKQBPafWVDJNrPWvW+RGGmiQ==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776900641; c=relaxed/simple;\n\tbh=3FDGIbyd53hieTFjHcvjm5nzg+D7ONlzAFyULte93sg=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=e4hLW5ce87PnuRpMlkH8yxYLlEPwyMnwg0ZBHbIjVA5ywwgyacnxr3ZplyNMWm6pYY9T+vcRNb2kroRHUui8VIJLKiDdYMRHjupzXbFEy8afogFBlOpBDYgRKsHNJAJLe3+jEbPqroJcYd/WKt/XyHZUmYNekn8uZnMBmqwzGMQ="
        ],
        "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=vE9qOI1S; 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-16027-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=vE9qOI1S; 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=1776900641;\n\tbh=3FDGIbyd53hieTFjHcvjm5nzg+D7ONlzAFyULte93sg=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=vE9qOI1Sv3eEEQbTnMhAdvgAPFVNBB8eyOmJISRYI8Es6gRuR8yDUFqmj9bm7DMxi\n\t a98lClsih+0h8JdzHKdnTtLERNelh3ovsyoUuZw9lMaVq4+O7VcGybWCrwy+cfQ8st\n\t YMrVopGGJlHOPR0/UaYwC+q1BlA3X0xKmCAKrg22XaOk5yQKqx05jx2q8XCPCiSlIF\n\t SMFXYY+60TKlJYBbHaYMNtN3NHCRCGyPknFipeS4TSv3Ip/aadAvZS9mljjkUxCVNx\n\t AgX3ddjqjh68xVkMFMP7EK1otdlubwVGtwrswCe8HU5iLHM+5Xkt3Z7ENUHHbGLfjw\n\t WugcZz4oQGIhA==",
        "From": "Chuck Lever <cel@kernel.org>",
        "Date": "Wed, 22 Apr 2026 19:30:04 -0400",
        "Subject": "[PATCH v9 10/17] cifs: Implement fileattr_get for case 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": "<20260422-case-sensitivity-v9-10-be023cc070e2@oracle.com>",
        "References": "<20260422-case-sensitivity-v9-0-be023cc070e2@oracle.com>",
        "In-Reply-To": "<20260422-case-sensitivity-v9-0-be023cc070e2@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>",
        "X-Mailer": "b4 0.16-dev",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2841;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=NHGFFutdF7XUq+F6V/57X13tbeSdQC6FWxwg7Cn1opw=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp6VoGOIp8bkRnF4kmb5Vb8E8yCgkwTWDUH1XIY\n FZmPD9guTuJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaelaBgAKCRAzarMzb2Z/\n l6AYD/95c629HAYMskEDv6EbLOg7b/4PdO9vAfj+Remfjt9CYqLZvGYeHRVnbSqj4dNuks55fSB\n DVxWxX2hRviI6Y9AnJBx0xyHDXp+3lUUT02TFBfuOll4bJ8oV2wlRuNJ0uAnXtQpv1tTcmPPFc2\n cdPwV5zmlNxNeL9cQuNYaPy+xT33MnqkvlmM+9OU9/XVn4mEi2EPTNtfWp1XcBLdOgRlLY6je4i\n lPDHzG7JGBhBC6AQJBf3yyaRD3YUn54e56WKiGgSqAz4IqOtR0vqhrNLSZrQPzWp8ZjEW80Ud1e\n nfvWhTjLXoTyKTUrCGNActqia/X2M6Gu0P+9GnJeWDtOcDu9CyS8KwsNPdWj1Hm12pECYhBhddP\n Ius5AYvAsnq1vkSgYAPeMQxMz9fgr01BW7g25lBn1hS8d6ieElEYfPu+3urr1UxCS4DA3FVjq0d\n bHdGfd5m858vQtxbprsaifDAiei0ZlHGedpcwgdi6x2BXjpjL/ZL444lzluge5F2P8gMTZRe+3d\n SnMBVQMuEQt3KgKLPpKlvqP6TdcEE/sUoP1FYYwPrDZ4X11ng+VNEjYRLZFe8KVaBfZ9aC5MT48\n Ght4dWsn2Nt6iziswdU/jSaqy+DtZIMFqO2//pc1gnkyZp7l/gHK5MjUiDUXkkGZVO9kv4Rrqml\n +B1DB2l+LXtmazw==",
        "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 filesystem\nhandles filenames in a case-sensitive manner. Report CIFS/SMB case\nhandling behavior via the FS_XFLAG_CASEFOLD flag.\n\nCIFS servers (typically Windows or Samba) are usually case-insensitive\nbut case-preserving, meaning they ignore case during lookups but store\nfilenames exactly as provided.\n\nThe implementation reports case sensitivity based on the nocase mount\noption, which reflects whether the client expects the server to perform\ncase-insensitive comparisons. When nocase is set, the mount is reported\nas case-insensitive.\n\nThe callback is registered in all three inode_operations structures\n(directory, file, and symlink) to ensure consistent reporting across\nall inode types.\n\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/smb/client/cifsfs.c | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)",
    "diff": "diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c\nindex 2025739f070a..9b70ffa3e01d 100644\n--- a/fs/smb/client/cifsfs.c\n+++ b/fs/smb/client/cifsfs.c\n@@ -30,6 +30,7 @@\n #include <linux/xattr.h>\n #include <linux/mm.h>\n #include <linux/key-type.h>\n+#include <linux/fileattr.h>\n #include <uapi/linux/magic.h>\n #include <net/ipv6.h>\n #include \"cifsfs.h\"\n@@ -1199,6 +1200,22 @@ struct file_system_type smb3_fs_type = {\n MODULE_ALIAS_FS(\"smb3\");\n MODULE_ALIAS(\"smb3\");\n \n+static int cifs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)\n+{\n+\tstruct cifs_sb_info *cifs_sb = CIFS_SB(dentry->d_sb);\n+\tstruct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);\n+\n+\t/*\n+\t * The nocase mount option installs case-insensitive dentry\n+\t * operations on this superblock. SMB preserves case on the\n+\t * wire and at rest, so the mount matches FS_XFLAG_CASEFOLD\n+\t * semantics: case-folded lookup, verbatim storage.\n+\t */\n+\tif (tcon->nocase)\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\treturn 0;\n+}\n+\n const struct inode_operations cifs_dir_inode_ops = {\n \t.create = cifs_create,\n \t.atomic_open = cifs_atomic_open,\n@@ -1217,6 +1234,7 @@ const struct inode_operations cifs_dir_inode_ops = {\n \t.listxattr = cifs_listxattr,\n \t.get_acl = cifs_get_acl,\n \t.set_acl = cifs_set_acl,\n+\t.fileattr_get = cifs_fileattr_get,\n };\n \n const struct inode_operations cifs_file_inode_ops = {\n@@ -1227,6 +1245,7 @@ const struct inode_operations cifs_file_inode_ops = {\n \t.fiemap = cifs_fiemap,\n \t.get_acl = cifs_get_acl,\n \t.set_acl = cifs_set_acl,\n+\t.fileattr_get = cifs_fileattr_get,\n };\n \n const char *cifs_get_link(struct dentry *dentry, struct inode *inode,\n@@ -1261,6 +1280,7 @@ const struct inode_operations cifs_symlink_inode_ops = {\n \t.setattr = cifs_setattr,\n \t.permission = cifs_permission,\n \t.listxattr = cifs_listxattr,\n+\t.fileattr_get = cifs_fileattr_get,\n };\n \n /*\n",
    "prefixes": [
        "v9",
        "10/17"
    ]
}