Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2197444/?format=api
{ "id": 2197444, "url": "http://patchwork.ozlabs.org/api/patches/2197444/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260217214741.1928576-11-cel@kernel.org/", "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": "<20260217214741.1928576-11-cel@kernel.org>", "list_archive_url": null, "date": "2026-02-17T21:47:34", "name": "[v8,10/17] cifs: Implement fileattr_get for case sensitivity", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c40a21a2a080917bd8fcee66c8a0cdce7e0428c7", "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/20260217214741.1928576-11-cel@kernel.org/mbox/", "series": [ { "id": 492483, "url": "http://patchwork.ozlabs.org/api/series/492483/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=492483", "date": "2026-02-17T21:47:25", "name": "Subject: Exposing case folding behavior", "version": 8, "mbox": "http://patchwork.ozlabs.org/series/492483/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2197444/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2197444/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=7o1A=AV=vger.kernel.org=linux-ext4+bounces-13721-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=u6t+2zKw;\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=7o1a=av=vger.kernel.org=linux-ext4+bounces-13721-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=u6t+2zKw;\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-13721-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=\"u6t+2zKw\"", "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 4fFtfZ4hqvz1xwC\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 08:52:38 +1100 (AEDT)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fFtfZ4DNYz4w9y\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 08:52:38 +1100 (AEDT)", "by gandalf.ozlabs.org (Postfix)\n\tid 4fFtfZ4B76z4wBF; Wed, 18 Feb 2026 08:52:38 +1100 (AEDT)", "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 4fFtfW1YhBz4w9y\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 18 Feb 2026 08:52:35 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 934DE3091C9C\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 17 Feb 2026 21:48:12 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id AF48B2FC874;\n\tTue, 17 Feb 2026 21:48:11 +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 6DC202F5308;\n\tTue, 17 Feb 2026 21:48:11 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 119F0C4CEF7;\n\tTue, 17 Feb 2026 21:48:09 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1771365158; cv=pass;\n\tb=lbJq2gx4GIFjYbn0Q9ZxPHdpZKU8J/uTJdAS4evlEcWzIWSNZQaanP0JRyyNGZsQVncakVyqs46un/pEtgNdGvW8D3JoFHGs7b/KtBSSbJTPVoI8nL6x8kA3mBAx24mfA5vjZ3ZFsTSqNkmoLwl63dO2hzREdt23REZKI57DIvhpiA4/N1DI6Bm8e3zwy7Lq3l0nMYCp5ZQl3LQREYZKEy0pDTGzOSQBk5BaHmTV803zBZLmqYz2Z0iXj0+Dtlhk2ck5zDo2MX3aU+wzisAzfWxIVwfeXA/H0q2Y11WH8fdncmv/jqMKsBW+r3lXXzdteNESdXkUjd7V5Yy2K8JzDQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771364891; cv=none;\n b=oYHsoyWM7iim23i6I75ASvKb5kK8dGKeBxym95uxPlxnKizjcvhc41L3txzVkUhmfpItEbXB72EiJH8vyLSKcxtBuNUmdCdTj17qc1yb/jdmblRD4rSdyyifzo7lopuGyaCabW/wZG4faD3Y0YjAUDR4o4NZZHJYfRMGLo6/AvE=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1771365158; c=relaxed/relaxed;\n\tbh=vkuMMUQ1+uFjnEerP+sbQkssOKyGNLkV9tW/wSnzlAg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=fMrAnbJ5O+gGxH/Q8mDuMIjah8Kq+R3WN1za5r49uTomRI7IOgq53TufQ3vhIdd3ibMwZEP9x2Ujh41f3bHzGcSeXcx7eOQMeuF/x0sL6XahmEQF5yVGQJP3PN9gCaX0JPXAJ2+96hXyVlAVQNQZoQXNG9Ldtjrt34zvECNvd5PgXJsHZbBbBuoshtJ6oik5nEd9vPD4aygLzFfEDOgOLDQABvpyz/hcfqmWYxDq2aN41lxITC0L7CNXvjJYHqwM1cMjzMXKj+tpyA4l8LBRMqExziqel9U3EE/BHoBPpY3C3Hu3get2Zxb+qHk7AGLWJp53LMzf3gOID6G+nZTxYA==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771364891; c=relaxed/simple;\n\tbh=5J2/6flRB909Ns0eqSfrHWl5jUmbSKDChds8uNX1o+Y=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=uUBvv1/xqsU703JZ9KIVcg17SwL05HzU+97gcTSrkpPkZe9JGcobuyi8DdkC+Eql7ZNY7JQBkfBfZe/OYDnOkuWFu/KCv+drihi4x9HyA2vGkQ2zsrFHlpOJdeCl1rnsqSumBNE4NjLhIXj+VXVcHxaMqN/TwndRe+k8/70FZdw=" ], "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=u6t+2zKw; dkim-atps=neutral;\n spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-13721-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=u6t+2zKw; 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=1771364891;\n\tbh=5J2/6flRB909Ns0eqSfrHWl5jUmbSKDChds8uNX1o+Y=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=u6t+2zKw/OruF4yK6QrMVZv/p9opIcZqoTW4zBnJEZ/v54wYSALunMMB3TrlDvduJ\n\t Qxcd+ZBu0V/alHR3HQCd4VBDT8cXkC+uSdh+Lk0Wg8hcIipmwRYjdZ26XIoze9mfhH\n\t RGUetd0fZE30GAHmVg9GWx5iQQGetUv0aTS9A4P4yS2Kr5bRbRqkO0yfXpngNyrRqO\n\t X9VM2MhU4qxJzgRWXbSqFHmPWylByjwsTg4egbKHAuxCemu93scSVR2C+sjpVBBa9c\n\t L48xM0deidoXI7mI8CNJgBUerIxnQ8+AnKS2FhN+HhCel32Txo9XxiZZeUp10jtloj\n\t QOgLsfj64LcqQ==", "From": "Chuck Lever <cel@kernel.org>", "To": "Al Viro <viro@zeniv.linux.org.uk>,\n\tChristian Brauner <brauner@kernel.org>,\n\tJan Kara <jack@suse.cz>", "Cc": "linux-fsdevel@vger.kernel.org,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-xfs@vger.kernel.org,\n\tlinux-cifs@vger.kernel.org,\n\tlinux-nfs@vger.kernel.org,\n\tlinux-api@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\thirofumi@mail.parknet.co.jp,\n\tlinkinjeon@kernel.org,\n\tsj1557.seo@samsung.com,\n\tyuezhang.mo@sony.com,\n\talmaz.alexandrovich@paragon-software.com,\n\tslava@dubeyko.com,\n\tglaubitz@physik.fu-berlin.de,\n\tfrank.li@vivo.com,\n\ttytso@mit.edu,\n\tadilger.kernel@dilger.ca,\n\tcem@kernel.org,\n\tsfrench@samba.org,\n\tpc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttrondmy@kernel.org,\n\tanna@kernel.org,\n\tjaegeuk@kernel.org,\n\tchao@kernel.org,\n\thansg@kernel.org,\n\tsenozhatsky@chromium.org,\n\tChuck Lever <chuck.lever@oracle.com>", "Subject": "[PATCH v8 10/17] cifs: Implement fileattr_get for case sensitivity", "Date": "Tue, 17 Feb 2026 16:47:34 -0500", "Message-ID": "<20260217214741.1928576-11-cel@kernel.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260217214741.1928576-1-cel@kernel.org>", "References": "<20260217214741.1928576-1-cel@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": "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 afda1d7c1ee1..9d85785a1c67 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@@ -1189,6 +1190,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 * Case sensitivity is reported based on the nocase mount option.\n+\t * CIFS servers typically perform case-insensitive lookups while\n+\t * preserving case in stored filenames. The nocase option indicates\n+\t * case-insensitive comparison is in effect for this mount.\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@@ -1206,6 +1223,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@@ -1216,6 +1234,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@@ -1250,6 +1269,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": [ "v8", "10/17" ] }