Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2226982/?format=api
{ "id": 2226982, "url": "http://patchwork.ozlabs.org/api/patches/2226982/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260422-case-sensitivity-v9-10-be023cc070e2@oracle.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "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": "new", "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-cifs-client/patch/20260422-case-sensitivity-v9-10-be023cc070e2@oracle.com/mbox/", "series": [ { "id": 501130, "url": "http://patchwork.ozlabs.org/api/series/501130/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501130", "date": "2026-04-22T23:29:54", "name": "Exposing case folding behavior", "version": 9, "mbox": "http://patchwork.ozlabs.org/series/501130/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226982/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226982/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-11023-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.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=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11023-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.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 sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::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 legolas.ozlabs.org (Postfix) with ESMTPS id 4g1FqV0ptdz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 09:31:50 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 8CE4A30193AE\n\tfor <incoming@patchwork.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 9C5313A3E81;\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=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=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=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-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+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" }, "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" ] }