Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2197428/?format=api
{ "id": 2197428, "url": "http://patchwork.ozlabs.org/api/patches/2197428/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260217214741.1928576-18-cel@kernel.org/", "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": "<20260217214741.1928576-18-cel@kernel.org>", "list_archive_url": null, "date": "2026-02-17T21:47:41", "name": "[v8,17/17] ksmbd: Report filesystem case sensitivity via FS_ATTRIBUTE_INFORMATION", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ff5422725078a0b7e8881cebe6debd2ad04cedc8", "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/20260217214741.1928576-18-cel@kernel.org/mbox/", "series": [ { "id": 492484, "url": "http://patchwork.ozlabs.org/api/series/492484/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=492484", "date": "2026-02-17T21:47:24", "name": "Subject: Exposing case folding behavior", "version": 8, "mbox": "http://patchwork.ozlabs.org/series/492484/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2197428/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2197428/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-9432-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=G4yebb6l;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-cifs+bounces-9432-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=\"G4yebb6l\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4fFtbM1qn7z1xvq\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 08:49:51 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 1B613302E76E\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 21:48:53 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F1D5B2FD1B5;\n\tTue, 17 Feb 2026 21:48:28 +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 CB90C2FB969;\n\tTue, 17 Feb 2026 21:48:28 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 5CC81C19421;\n\tTue, 17 Feb 2026 21:48:26 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771364908; cv=none;\n b=Ysd6yhLV11aag/PSB4OXHH7ESSGMDw/7tYnmQ/+oenYaNnJOmiQjnab+zn4k5H4ihwTgbpEm/jtGShLs/oHQpvsSegeC8R7YEZry/6GD2kLjlepbM1/GjPx0CaG48SRF4HEEg2OxxB1ptH2q8u91ymjFFl382k6Roeu3FVTgA3E=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771364908; c=relaxed/simple;\n\tbh=/ikJUIG0jvt2cNahwy/tuVk+f4fXHtX9vTuCLPZ9sHc=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=ug5JbCO1WHucuORzyp/lsk+6PhA0WTYKFsumiAB8mxGEuIRx/Y7Os5X6GfTh8dXWr3mbf8pqN2fTfq9ENxRjfsW/Wpj1EVxbIaZtp4sz+rf0SuSQeF2Jks3HCHhzJVz/NXUuVvYSFGy55LpDov2DyoUKokNBvpA343197us8r/w=", "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=G4yebb6l; 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=1771364908;\n\tbh=/ikJUIG0jvt2cNahwy/tuVk+f4fXHtX9vTuCLPZ9sHc=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=G4yebb6lDUKgImX3qbUhm1n02dmHbi6NZQ/mJeduFaOczLJjuFZqVlksQ1UGqu+9X\n\t N4syxRhBuswQKeeDi1S08Ol25XYfnUo4T5sDnl5y+P1w7afiLXXFUrRBsBGPJT7I96\n\t xqBZjXPigKKB8apX0Vf6wiSIqMYje4ZguCbdwoicw8+LyQ9YPwI5ebdypQFNMLzXOZ\n\t agCJgWAiI7QxdgQYeFa/LbYJkQG7uXftxfvdOSy7mbQKF3KLm4GgW7anY7iQzII/0n\n\t ceMSo2jb5oaHpmGtU6vVEc+QhGZQnK2bAeq57lqSzd4zx4GcxeZObzEKABlVcEfiHu\n\t TndurdBcWP8JQ==", "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 17/17] ksmbd: Report filesystem case sensitivity via\n FS_ATTRIBUTE_INFORMATION", "Date": "Tue, 17 Feb 2026 16:47:41 -0500", "Message-ID": "<20260217214741.1928576-18-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-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-Transfer-Encoding": "8bit" }, "content": "From: Chuck Lever <chuck.lever@oracle.com>\n\nksmbd hard-codes FILE_CASE_SENSITIVE_SEARCH and\nFILE_CASE_PRESERVED_NAMES in FS_ATTRIBUTE_INFORMATION responses,\nincorrectly indicating all exports are case-sensitive. This breaks\nclients accessing case-insensitive filesystems like exFAT or\next4/f2fs directories with casefold enabled.\n\nQuery actual case behavior via vfs_fileattr_get() and report accurate\nattributes to SMB clients. Filesystems without ->fileattr_get continue\nreporting default POSIX behavior (case-sensitive, case-preserving).\n\nSMB's FS_ATTRIBUTE_INFORMATION reports per-share attributes from the\nshare root, not per-file. Shares mixing casefold and non-casefold\ndirectories report the root directory's behavior.\n\nAcked-by: Namjae Jeon <linkinjeon@kernel.org>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/smb/server/smb2pdu.c | 25 +++++++++++++++++++------\n 1 file changed, 19 insertions(+), 6 deletions(-)", "diff": "diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c\nindex cbb31efdbaa2..d2a64afdd950 100644\n--- a/fs/smb/server/smb2pdu.c\n+++ b/fs/smb/server/smb2pdu.c\n@@ -13,6 +13,7 @@\n #include <linux/falloc.h>\n #include <linux/mount.h>\n #include <linux/filelock.h>\n+#include <linux/fileattr.h>\n \n #include \"glob.h\"\n #include \"smbfsctl.h\"\n@@ -5497,16 +5498,28 @@ static int smb2_get_info_filesystem(struct ksmbd_work *work,\n \tcase FS_ATTRIBUTE_INFORMATION:\n \t{\n \t\tFILE_SYSTEM_ATTRIBUTE_INFO *info;\n+\t\tstruct file_kattr fa = {};\n \t\tsize_t sz;\n+\t\tu32 attrs;\n+\t\tint err;\n \n \t\tinfo = (FILE_SYSTEM_ATTRIBUTE_INFO *)rsp->Buffer;\n-\t\tinfo->Attributes = cpu_to_le32(FILE_SUPPORTS_OBJECT_IDS |\n-\t\t\t\t\t FILE_PERSISTENT_ACLS |\n-\t\t\t\t\t FILE_UNICODE_ON_DISK |\n-\t\t\t\t\t FILE_CASE_PRESERVED_NAMES |\n-\t\t\t\t\t FILE_CASE_SENSITIVE_SEARCH |\n-\t\t\t\t\t FILE_SUPPORTS_BLOCK_REFCOUNTING);\n+\t\tattrs = FILE_SUPPORTS_OBJECT_IDS |\n+\t\t\tFILE_PERSISTENT_ACLS |\n+\t\t\tFILE_UNICODE_ON_DISK |\n+\t\t\tFILE_SUPPORTS_BLOCK_REFCOUNTING;\n \n+\t\terr = vfs_fileattr_get(path.dentry, &fa);\n+\t\tif (err && err != -ENOIOCTLCMD) {\n+\t\t\tpath_put(&path);\n+\t\t\treturn err;\n+\t\t}\n+\t\tif (!(fa.fsx_xflags & FS_XFLAG_CASEFOLD))\n+\t\t\tattrs |= FILE_CASE_SENSITIVE_SEARCH;\n+\t\tif (!(fa.fsx_xflags & FS_XFLAG_CASENONPRESERVING))\n+\t\t\tattrs |= FILE_CASE_PRESERVED_NAMES;\n+\n+\t\tinfo->Attributes = cpu_to_le32(attrs);\n \t\tinfo->Attributes |= cpu_to_le32(server_conf.share_fake_fscaps);\n \n \t\tif (test_share_config_flag(work->tcon->share_conf,\n", "prefixes": [ "v8", "17/17" ] }