[{"id":3681213,"web_url":"http://patchwork.ozlabs.org/comment/3681213/","msgid":"<CAH2r5muvUVY8FD6ZM+ARecM8evjejB15n0Ea9Z=GGn=i5aKFNA@mail.gmail.com>","list_archive_url":null,"date":"2026-04-23T00:59:43","subject":"Re: [PATCH v9 10/17] cifs: Implement fileattr_get for case\n sensitivity","submitter":{"id":510,"url":"http://patchwork.ozlabs.org/api/people/510/","name":"Steve French","email":"smfrench@gmail.com"},"content":"Acked-by: Steve French <stfrench@microsoft.com>\n\nDo you know which xfstests this would enable?  IIRC a few of them\ndepend on the fs supporting fileattr_get\n\nOn Wed, Apr 22, 2026 at 6:34 PM Chuck Lever <cel@kernel.org> wrote:\n>\n> From: Chuck Lever <chuck.lever@oracle.com>\n>\n> Upper layers such as NFSD need a way to query whether a filesystem\n> handles filenames in a case-sensitive manner. Report CIFS/SMB case\n> handling behavior via the FS_XFLAG_CASEFOLD flag.\n>\n> CIFS servers (typically Windows or Samba) are usually case-insensitive\n> but case-preserving, meaning they ignore case during lookups but store\n> filenames exactly as provided.\n>\n> The implementation reports case sensitivity based on the nocase mount\n> option, which reflects whether the client expects the server to perform\n> case-insensitive comparisons. When nocase is set, the mount is reported\n> as case-insensitive.\n>\n> The callback is registered in all three inode_operations structures\n> (directory, file, and symlink) to ensure consistent reporting across\n> all inode types.\n>\n> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>\n> ---\n>  fs/smb/client/cifsfs.c | 20 ++++++++++++++++++++\n>  1 file changed, 20 insertions(+)\n>\n> diff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c\n> index 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> +       struct cifs_sb_info *cifs_sb = CIFS_SB(dentry->d_sb);\n> +       struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);\n> +\n> +       /*\n> +        * The nocase mount option installs case-insensitive dentry\n> +        * operations on this superblock. SMB preserves case on the\n> +        * wire and at rest, so the mount matches FS_XFLAG_CASEFOLD\n> +        * semantics: case-folded lookup, verbatim storage.\n> +        */\n> +       if (tcon->nocase)\n> +               fa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n> +       return 0;\n> +}\n> +\n>  const struct inode_operations cifs_dir_inode_ops = {\n>         .create = cifs_create,\n>         .atomic_open = cifs_atomic_open,\n> @@ -1217,6 +1234,7 @@ const struct inode_operations cifs_dir_inode_ops = {\n>         .listxattr = cifs_listxattr,\n>         .get_acl = cifs_get_acl,\n>         .set_acl = cifs_set_acl,\n> +       .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>         .fiemap = cifs_fiemap,\n>         .get_acl = cifs_get_acl,\n>         .set_acl = cifs_set_acl,\n> +       .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>         .setattr = cifs_setattr,\n>         .permission = cifs_permission,\n>         .listxattr = cifs_listxattr,\n> +       .fileattr_get = cifs_fileattr_get,\n>  };\n>\n>  /*\n>\n> --\n> 2.53.0\n>\n>","headers":{"Return-Path":"\n <SRS0=g24y=CW=vger.kernel.org=linux-ext4+bounces-16039-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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=YMRiJS2/;\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=g24y=cw=vger.kernel.org=linux-ext4+bounces-16039-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.234.253.10\n arc.chain=\"subspace.kernel.org:google.com\"","gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com","gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=YMRiJS2/;\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-16039-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"YMRiJS2/\"","smtp.subspace.kernel.org;\n arc=pass smtp.client-ip=209.85.222.177","smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"],"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 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1Hnd1TrWz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 11:00:21 +1000 (AEST)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g1HnW4mqpz4wKq\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 11:00:15 +1000 (AEST)","by gandalf.ozlabs.org (Postfix)\n\tid 4g1HnW4f5jz4wKp; Thu, 23 Apr 2026 11:00:15 +1000 (AEST)","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 4g1HnS2cl7z4wL1\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 23 Apr 2026 11:00:12 +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 7FD3C3024153\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 23 Apr 2026 01:00:01 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 5D75C235C01;\n\tThu, 23 Apr 2026 01:00:00 +0000 (UTC)","from mail-qk1-f177.google.com (mail-qk1-f177.google.com\n [209.85.222.177])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 95FED21B191\n\tfor <linux-ext4@vger.kernel.org>; Thu, 23 Apr 2026 00:59:58 +0000 (UTC)","by mail-qk1-f177.google.com with SMTP id\n af79cd13be357-8ee7ffd738dso243490585a.1\n        for <linux-ext4@vger.kernel.org>;\n Wed, 22 Apr 2026 17:59:58 -0700 (PDT)"],"ARC-Seal":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707; t=1776906015; cv=pass;\n\tb=F8X4+qD+6vnnq6I37MZOE1o2pFBEXMswnWvevKE+yjuHOd/wweuczgusBjFnDBUUdWEjy1EOpw8cO9C9oMSuesNsW/7U5yDbgq/qH6qDS+kL567m3+I0HzlGyU8ZHUcSZMyKF7vcfnPcuulYgmzvTzYCT/+ePSDV1EbhjTaq5f9reZM5rHSRrpQcXz3zowc5scxog3gXDqmVklNBiiUzBp9SVLX7z9r7o7kdK+RrzWr0NZG1G55TooFbYmpwh89oBTTtNnP572qpGFdR7NXowjrN8zwF9+CD/+CnBj65NRGyoIHGQdp1uv+SorT1A3G+pknLa5YyXx+0qPgOStGR1g==","i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776906000; cv=pass;\n b=s/C1CLkfxozrJQ+6aJU/Ql+5KNb+bf6HWa4SpIHYkMBJEVH5KyJOjgkTJZDss3sApbXsmUjPDSbhn6PXC453jCSPL/JE+GjZcQ3PBhMDBd/2OEs5TC7pmPDuJA6AhxCYaDJ92CvOsCxTWjWYHuhOsXUa14d5F5rSlleqnhubun4=","i=1; a=rsa-sha256; t=1776905997; cv=none;\n        d=google.com; s=arc-20240605;\n        b=H/o5M5RkQa5D+4aqsHZr0sW75PVSNnA2gC0bJxtdbj4qVDo/QeZN8FvDu3NoKaDgDr\n         QtSKnKuScBi5qt5dVC3YzI1+Dkjc26K10Nb2uPMlgCqiH6iB8mx0V7ElYat3iX+pVl3X\n         lJ1t+WbeXQtqZJHXDfdItuAztKgjG6V2JRIrecXCys21cB3Cdbz2WsFI+nkAUCBqXSmi\n         9XCWxr6X8xf6Mod7OSAjtHgUAJ47Ky1Y18uplEftMBcdM3qL7LdSmroMYARk1qkinMEY\n         /mktAkr2X2LdscRjJoUnJHoVM4pJs0lK70li9fShDU/4Z8/hwUhYUdF05zaKESAypugt\n         FC6g=="],"ARC-Message-Signature":["i=3; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1776906015; c=relaxed/relaxed;\n\tbh=t/Auuo3ewU9oR2gX8cwKFh7CPK/qOcoVmyN6PErL6wA=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=bx6U2Rly6/EBxXR/HVpE71mxJMa3LPTga8w5iK3XCwSxkGXHfY6sVfJH9/3lgG/08Qy3tqfx4Awi0fds4OxPaTacla4mN0WTX/5L2gnD9TvLZddXIBvNm2ZE3kvpfID2EV0tZLQGiog2WUZcwpq5Dobn6zfL7P99gMlrKGj6vSmXoU3XUwKThOqwIhqsJ32tfqPO98Pw/sjuUMnJPqw38QvpvMh7ALOQcav8PYPQbNKoNutQxWpU/22H7OZQc+a0foxX3/F0z5K2p1aKCVjIv3Q7JxxcmWvjgnMTakVzSZO033WpRMZ4jr39ZnftW64aA1GIcT1zFDSiSCX3pml3ow==","i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776906000; c=relaxed/simple;\n\tbh=glEATcMQjgXcIVNGcFv/jGZwSA4FOZck5uTqZXkwZrk=;\n\th=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:\n\t To:Cc:Content-Type;\n b=kWfpuHiVVVN1g3FeXNCYKpIvEYNn9GutN8KL2qQGlS659hHP0+jnr3+4t5h3Q74QUJ2CcBJ2yi7aAiqLBKmwIvC0v+aMYHZ5AkAgfFzPvoI0+rg87cFecx/6Pm5vGhKWPtvC9fx9ZbmPjf9s1f6cLxCS06N+wB6fz4W1q5EwTuk=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:dkim-signature;\n        bh=t/Auuo3ewU9oR2gX8cwKFh7CPK/qOcoVmyN6PErL6wA=;\n        fh=uyzB+pD3w9R2ChWtmQVD1Pisz9mWxK65wPiwdGXYuGI=;\n        b=bedASs0Lh4Utl8sHSUUkuf73/yqPc6PbCLum1qmBZT6PvcXf6OqcFzen0l/+nvf39R\n         L/MHGja/U0uzyEfIKapKScORTnW4I7mZuHfLnn3etzAsXaIzReTWJGTLQERt8tvhze/v\n         i5Jhtf1iqcMlPqJ6L8sdIjQitnT1TFYRfZRC9PL/m2NnI/6O1IYHHXCN3EjMo9ZStXTp\n         IhIJ4YVpvJSeVDqpquMrS9PiNciTDDlyoYvjPv3GRKzQaGccb0CXEXtKCYROCeX9BMoP\n         bJ2Bz9ypOMtodBMIEvt45N3YigroqE0tjSG9Q1kG/cFYRld2gfA1PJqKdEXKOXTlYoy0\n         3bCQ==;\n        darn=vger.kernel.org"],"ARC-Authentication-Results":["i=3; gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=YMRiJS2/; dkim-atps=neutral;\n spf=pass (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16039-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org","i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=YMRiJS2/; arc=pass smtp.client-ip=209.85.222.177","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776905997; x=1777510797;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=t/Auuo3ewU9oR2gX8cwKFh7CPK/qOcoVmyN6PErL6wA=;\n        b=YMRiJS2/7iPeV6CGivmFNZlhKtWjZPgsedWvhWP74UAv3lHrFmEFD0Aur6BIskzh0g\n         QWBYcqG55fzdQVfvpnQ9RV5vQsjz0rWZL56X2ebc3clKJU48exG+EENE6kbVBxOFpPk+\n         5t2gNgAxnqyaIvLY5ck4yRXX+nydQgvVrTEgBY8JAQXSqA8G3K6ongzaSlOAcv5LE5uM\n         Yo7Lct+7ITiCGlvIXN81wLh8Pdlp3XWrN5vkapIFlpVoCanONo4VVCoHnyFslJtMBaWb\n         mcFu62lehj3ZRz/Tw8nwq2iDe7aP0WaWjUg+TjiMd5pr/GNJgLYryCDxWm3FILghrLh2\n         OYZw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776905997; x=1777510797;\n        h=content-transfer-encoding:cc:to:subject:message-id:date:from\n         :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=t/Auuo3ewU9oR2gX8cwKFh7CPK/qOcoVmyN6PErL6wA=;\n        b=F3qwa1jpCIQb28ae8VdCBZbDZqUGoXhNJZprbLsIW25OKV7lLyPX46ZnSCVTrPw4ij\n         gcdajv+Vq/xpffEWGRw6qek5nB+wvcZ32vctDKBDHSgNY5DfkAdpGc7ftI7vLcO7tNIN\n         0zdylykVgFWKGf7a+Z2LPDP0h9q5r/JPDOiBnT8jyQiwrsVk6kQHJ1ZV5g2OgkAyJpgG\n         gGxiUr8DFKd5uuINpHNkB311wl88c1zmsHewUHrwVeST7FneGkj2itlGZRxNlRYZ5jrb\n         h7ldbQZA8gh1AMIxIvCDIly8hc7ryE+EZSum5FKQrZ8fqueiMSC+lKZN+1KOx9qqeibO\n         rWPw==","X-Forwarded-Encrypted":"i=1;\n AFNElJ8n4uSS+04onhsHc4fgdJly9LklbH8R5q9OpF/pbpJC94PmtM/rDRacyaV70Wqb60K+bcofLCxAI0eY@vger.kernel.org","X-Gm-Message-State":"AOJu0Yz4jIfCoCsuq0SO1Eaj0IoVFUByiragJ/ZG5xe+n6zJJsz5zLid\n\tOSPM2L/Er5HWALg6oaGRAn7O5vS46Y53mDDNfU70ChXY6aXQKyfgvoFGZvcc2o7b9nkGD2xs4Se\n\tJMkReSdwvmb0uFq7QLMnDBIXyQuW8POo=","X-Gm-Gg":"AeBDietLGU9dglVNuJh752EPb9gsvMQSVNyjEkRVVbKzf4ba2p2ccRgQ0xPQXQgFXTU\n\t+8hlFoI3aDWBSUTpWeAVqb+jeantoKYsHbL6p7/7wQsxE0TOrxEuteCh/d5l3debd493JX97dWr\n\tLYeHOG9kfu8v560aJJRMW49pBRdX2jCQABVV0Xwrhh4QOsIRCfKIbTVmPxkW2eP9L4NG/pdNrKp\n\tUQ2FE8Hn1wsiotNoqYJfWoypPnWQFI5pDSIj17DKYQlCuneeW4XoX+x1Uj++PvQvciwml5FCdwd\n\tdiDY7BSrrvQceQpeglMzxFhjKB1ZKm5hs82qOMmJCKPm0vAMpTZFvAmRlSSIUZh4hxZO/9cxJhP\n\tcurfkUdR31j1BirSkbh/D07nS1QGEXIjkVGE6kFqrQ4y/9lEXSjG/9zaIxNvRU/SyU5xWztzRft\n\tJQdZg6cLy1ZxG7mKV1GuaqdkTLFHwbB3Cy1VD5xeBot+g=","X-Received":"by 2002:a05:6214:490a:b0:8ac:b3ba:eb0c with SMTP id\n 6a1803df08f44-8b0282f35c0mr336785626d6.2.1776905997499; Wed, 22 Apr 2026\n 17:59:57 -0700 (PDT)","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","References":"<20260422-case-sensitivity-v9-0-be023cc070e2@oracle.com>\n <20260422-case-sensitivity-v9-10-be023cc070e2@oracle.com>","In-Reply-To":"<20260422-case-sensitivity-v9-10-be023cc070e2@oracle.com>","From":"Steve French <smfrench@gmail.com>","Date":"Wed, 22 Apr 2026 19:59:43 -0500","X-Gm-Features":"AQROBzCtyORnfuVHnIm1n6WO0qai8y2HQyRw138-ozkefgToPmyDNAGdDckhKog","Message-ID":"\n <CAH2r5muvUVY8FD6ZM+ARecM8evjejB15n0Ea9Z=GGn=i5aKFNA@mail.gmail.com>","Subject":"Re: [PATCH v9 10/17] cifs: Implement fileattr_get for case\n sensitivity","To":"Chuck Lever <cel@kernel.org>","Cc":"Al Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>,\n Jan Kara <jack@suse.cz>,\n\tlinux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,\n\tlinux-xfs@vger.kernel.org, linux-cifs@vger.kernel.org,\n\tlinux-nfs@vger.kernel.org, linux-api@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net, hirofumi@mail.parknet.co.jp,\n\tlinkinjeon@kernel.org, sj1557.seo@samsung.com, yuezhang.mo@sony.com,\n\talmaz.alexandrovich@paragon-software.com, slava@dubeyko.com,\n\tglaubitz@physik.fu-berlin.de, frank.li@vivo.com, tytso@mit.edu,\n\tadilger.kernel@dilger.ca, cem@kernel.org, sfrench@samba.org,\n pc@manguebit.org,\n\tronniesahlberg@gmail.com, sprasad@microsoft.com, trondmy@kernel.org,\n\tanna@kernel.org, jaegeuk@kernel.org, chao@kernel.org, hansg@kernel.org,\n\tsenozhatsky@chromium.org, Chuck Lever <chuck.lever@oracle.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","X-Spam-Status":"No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tFREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,\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"}},{"id":3681227,"web_url":"http://patchwork.ozlabs.org/comment/3681227/","msgid":"<c41111fd-2473-4fdd-8e1e-285b9e24e631@app.fastmail.com>","list_archive_url":null,"date":"2026-04-23T01:35:47","subject":"Re: [PATCH v9 10/17] cifs: Implement fileattr_get for case\n sensitivity","submitter":{"id":86689,"url":"http://patchwork.ozlabs.org/api/people/86689/","name":"Chuck Lever","email":"cel@kernel.org"},"content":"On Wed, Apr 22, 2026, at 8:59 PM, Steve French wrote:\n> Acked-by: Steve French <stfrench@microsoft.com>\n>\n> Do you know which xfstests this would enable?  IIRC a few of them\n> depend on the fs supporting fileattr_get\n\nThanks for the Ack.\n\nI checked the current xfstests tree and couldn’t find a test that flips\nfrom notrun to run on cifs just from adding ->fileattr_get. generic/556\nis the existing case-folding test, but _has_casefold_kernel_support in\ncommon/casefold hard-codes ext4/f2fs/tmpfs. Enabling it on cifs would\nneed a new mechanism in common/casefold plus a mount-option-driven\nvariant (the cifs reporting keys off nocase, not a per-inode flag), so\nthat's a separate piece of work.\n\nThe practical effect on the existing suite is that fsstress's getattr_f\nnow returns success instead of ENOTTY on cifs, which quiets some noise\nbut doesn't gate any test. To actually exercise the new FS_XFLAG_CASEFOLD\nreporting I think a new test (or a generalization of generic/556) would\nhave to be written.","headers":{"Return-Path":"\n <SRS0=GYt3=CW=vger.kernel.org=linux-ext4+bounces-16040-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=uLB/V9Vx;\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=gyt3=cw=vger.kernel.org=linux-ext4+bounces-16040-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=uLB/V9Vx;\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-16040-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=\"uLB/V9Vx\"","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 4g1JbR1nqMz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 11:36:35 +1000 (AEST)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g1JbQ6SF7z4wKB\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 11:36:34 +1000 (AEST)","by gandalf.ozlabs.org (Postfix)\n\tid 4g1JbQ5x3cz4wKr; Thu, 23 Apr 2026 11:36:34 +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)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g1JbM1vV8z4wKB\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 23 Apr 2026 11:36:31 +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 65BFD3034A14\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 23 Apr 2026 01:36:15 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F03093B27E8;\n\tThu, 23 Apr 2026 01:36:10 +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 ACA4E1D9A54;\n\tThu, 23 Apr 2026 01:36:10 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 7E0EEC2BCB4;\n\tThu, 23 Apr 2026 01:36:09 +0000 (UTC)","from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50])\n\tby mailfauth.phl.internal (Postfix) with ESMTP id 5F59AF4006A;\n\tWed, 22 Apr 2026 21:36:08 -0400 (EDT)","from phl-imap-15 ([10.202.2.104])\n  by phl-compute-10.internal (MEProxy); Wed, 22 Apr 2026 21:36:08 -0400","by mailuser.phl.internal (Postfix, from userid 501)\n\tid 2894B780070; Wed, 22 Apr 2026 21:36:08 -0400 (EDT)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1776908194; cv=pass;\n\tb=NV1VtPCsQm7YkR/A94GQmqeGgfu4ORjsiSadDjvMcgb+fEC5b9wyyyg/2nIdfGJ0WIjNz4paWDvHsrxqW0cEmDMa75+2L66F83rCkzAYfonALpvnJXg4sc0N8+DOz2vmhDQytUQKZ9BNLBboWwXeSaEkQCy3wqOJZGYV29K25Hn43z5iQgXp+IPgtMdoQGeTQyZesBJLgbVuf+Aef1W3sAQY5eCDCwZgw9hLG3MfmupOnh8T5ihZvk4DOzUIZz0/arpq0uTBFoLkQb965nXdwOh6cqlgP/UN+p4v38tH+fRI8EnsBbj8a8nnXQeLZNYHQWA+mzAB/KlYkTx5yPVwjQ==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776908170; cv=none;\n b=kH8qpT1Q7Gkv75g+oQFDnEoFUyJBjjEblGmmg1qPMgEzQtOXf2DLyxpKN6Oq5uiNCRtYsqwyYIinOO+v7qvnbcixJs0bKvumnDuGFHCSVtVcbkp1DxmYAoMP2bjZatVCmZ/soFXZrHy4ivqgRt8f2SVZJBn6f33D/onva9+IIdk="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1776908194; c=relaxed/relaxed;\n\tbh=qo7PBuq6BzRNudxbU+0q5/S2Icjjb7Fo/l5Z8KGwnMk=;\n\th=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References:\n\t Subject:Content-Type;\n b=ajIT6Gy7Q0aKvZv4iX1ev+jQk4+bkciQv2Uq/VuMKoxC4P0o3Xv1JQpvzcOp/gTdrdgXJPn6egtINkSD2z2i5uog91bQqd7e1Osv2NPPIHnVfwl5gsBwKtRmxvYEiJgbX6AgeI989EUs6Rq6TNQWGmxJkZGyEiC8i2SDPPZPLunUzBElJX9EW1RJeUMLc9/FzbKKC3hjI3Y3S0gnfPKleIPFKrk71ht2U6yMW3/GQuQUiw8pYEdkWwUgUii75BPlVL0YxYm0i4whB8Kshxq3dPGJNmOwwBd+vjjSU2gd2kMmG+8Z+p3GFpKLCLuo73A8Gq3k+vizEWOBxr27OTvAeQ==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776908170; c=relaxed/simple;\n\tbh=fisfLRUPF2gQeK8/tjab1CMLN7z38y0h7QBe3fR1FGk=;\n\th=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References:\n\t Subject:Content-Type;\n b=IslLa3IA2x4kekBBeAd5TWe1lf8V6phrT3vdCfJ64ocvRO+/H1xgyBNtU+RUMDJFln7KHrdZ4lJAKrEFMbZix6S+ItmCOpKQ5pf79oAdR5is9ruKtLSPjovRFj/QigbPJQAdmC9w2XdYup7wENRZgXJUJyfNfPVwxvSZekpF2DI="],"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=uLB/V9Vx; dkim-atps=neutral;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16040-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=uLB/V9Vx; 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=1776908170;\n\tbh=fisfLRUPF2gQeK8/tjab1CMLN7z38y0h7QBe3fR1FGk=;\n\th=Date:From:To:Cc:In-Reply-To:References:Subject:From;\n\tb=uLB/V9Vxth7g4vShFYvcL/mCTim0wfkAAkzRXOhJ3wDvANYCoRIde/8hvh+dG2QJF\n\t /jGC5YH+IR1TrhTJMzoW/ahCEIQqaIvTvOPOVyLT70ckze0ciCzKkRw9Ey6At5urbo\n\t OAy3FEXO7SjoCK+NI2hD22Uy6THb29cgHttSndmUTWS8jiMA17j06gmzCo/Nl+ikAq\n\t 5rmJQKSDoXL0ZQ2hE/NnPbmXVr13Fg0WP7qJx/b11Odz6Jt4+TmF0qBMY7YVJk9X+w\n\t gqJHVlktyUP9gP84U0fdhV8hz9D1VlQczWS/xG/9G35iAySWuSucdKbee96dDB+uzs\n\t /XI/Yu8+CoQTw==","X-ME-Sender":"<xms:iHfpaeo4VthmNtZ5zqVLjiXC2cn8tWHGEMdzLK0PkfHerQzKuwGL8w>\n    <xme:iHfpaXdLH9MSdgJtkPwHUqYJVv1n_uNz8FaJj5-5PuPzSv6NNKdKbBoPzaTwYk9Lb\n    c1xxpWMr8HwIBjxxcs-GZB4qopZ4Kv9XLZdh_pdji3Ur2a-_bOMJJc>","X-ME-Proxy-Cause":"\n gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdeiheekgecutefuodetggdotefrod\n    ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr\n    ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug\n    hrpefoggffhffvvefkjghfufgtgfesthhqredtredtjeenucfhrhhomhepfdevhhhutghk\n    ucfnvghvvghrfdcuoegtvghlsehkvghrnhgvlhdrohhrgheqnecuggftrfgrthhtvghrnh\n    epgffhgeeutdeiieevuefgvedtjeefudekvefggefguefgtefgledtteeuleelleetnecu\n    vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheptghhuhgtkh\n    hlvghvvghrodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduieefgeelleel\n    heelqdefvdelkeeggedvfedqtggvlheppehkvghrnhgvlhdrohhrghesfhgrshhtmhgrih\n    hlrdgtohhmpdhnsggprhgtphhtthhopeeffedpmhhouggvpehsmhhtphhouhhtpdhrtghp\n    thhtohepshgvnhhoiihhrghtshhkhiestghhrhhomhhiuhhmrdhorhhgpdhrtghpthhtoh\n    eprgguihhlghgvrhdrkhgvrhhnvghlseguihhlghgvrhdrtggrpdhrtghpthhtohepshhl\n    rghvrgesughusggvhihkohdrtghomhdprhgtphhtthhopehrohhnnhhivghsrghhlhgsvg\n    hrghesghhmrghilhdrtghomhdprhgtphhtthhopehsmhhfrhgvnhgthhesghhmrghilhdr\n    tghomhdprhgtphhtthhopegrnhhnrgeskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepsg\n    hrrghunhgvrheskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheptggvmheskhgvrhhnvghl\n    rdhorhhgpdhrtghpthhtoheptghhrghosehkvghrnhgvlhdrohhrgh","X-ME-Proxy":"<xmx:iHfpaR735JLTmlXf6PZaw09JvM2INK1_wFF6Sofysyc5cHAzrptIUA>\n    <xmx:iHfpaR3Ct_L9JXA3_3D08tOGJwAeJitT7nP5_Yj2u3ZipmZ8_WhTyA>\n    <xmx:iHfpacp_YaFAr7nSWwX0ZxI4Obx-0-j3X9gZ32hL5RJuIURnLf2EVg>\n    <xmx:iHfpaXVoO2mIU-wKylIYQImIQNtl2kj4f7yCmO3vyFuPWUpTFhRI7w>\n    <xmx:iHfpaRcA71LEAscdJdF6cGc-t3Q_4jPF-jb1PwNWd4SjcOeP35Uy-bpw>","Feedback-ID":"ifa6e4810:Fastmail","X-Mailer":"MessagingEngine.com Webmail Interface","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","Date":"Wed, 22 Apr 2026 21:35:47 -0400","From":"\"Chuck Lever\" <cel@kernel.org>","To":"\"Steve French\" <smfrench@gmail.com>","Cc":"\"Alexander Viro\" <viro@zeniv.linux.org.uk>,\n \"Christian Brauner\" <brauner@kernel.org>, \"Jan Kara\" <jack@suse.cz>,\n 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,\n \"OGAWA Hirofumi\" <hirofumi@mail.parknet.co.jp>,\n \"Namjae Jeon\" <linkinjeon@kernel.org>,\n \"Sungjong Seo\" <sj1557.seo@samsung.com>,\n \"Yuezhang Mo\" <yuezhang.mo@sony.com>,\n almaz.alexandrovich@paragon-software.com,\n \"Viacheslav Dubeyko\" <slava@dubeyko.com>,\n \"John Paul Adrian Glaubitz\" <glaubitz@physik.fu-berlin.de>,\n frank.li@vivo.com, \"Theodore Tso\" <tytso@mit.edu>,\n adilger.kernel@dilger.ca, \"Carlos Maiolino\" <cem@kernel.org>,\n \"Steve French\" <sfrench@samba.org>, \"Paulo Alcantara\" <pc@manguebit.org>,\n \"Ronnie Sahlberg\" <ronniesahlberg@gmail.com>,\n \"Shyam Prasad N\" <sprasad@microsoft.com>,\n \"Trond Myklebust\" <trondmy@kernel.org>,\n \"Anna Schumaker\" <anna@kernel.org>, \"Jaegeuk Kim\" <jaegeuk@kernel.org>,\n \"Chao Yu\" <chao@kernel.org>, \"Hans de Goede\" <hansg@kernel.org>,\n senozhatsky@chromium.org, \"Chuck Lever\" <chuck.lever@oracle.com>","Message-Id":"<c41111fd-2473-4fdd-8e1e-285b9e24e631@app.fastmail.com>","In-Reply-To":"\n <CAH2r5muvUVY8FD6ZM+ARecM8evjejB15n0Ea9Z=GGn=i5aKFNA@mail.gmail.com>","References":"<20260422-case-sensitivity-v9-0-be023cc070e2@oracle.com>\n <20260422-case-sensitivity-v9-10-be023cc070e2@oracle.com>\n <CAH2r5muvUVY8FD6ZM+ARecM8evjejB15n0Ea9Z=GGn=i5aKFNA@mail.gmail.com>","Subject":"Re: [PATCH v9 10/17] cifs: Implement fileattr_get for case\n sensitivity","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"quoted-printable","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"}}]