[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <874ionw8ty.fsf@mail.parknet.co.jp>
Date: Thu, 15 Jan 2026 17:58:49 +0900
From: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To: Chuck Lever <cel@...nel.org>
Cc: Christian Brauner <brauner@...nel.org>, Jan Kara <jack@...e.cz>,
<linux-fsdevel@...r.kernel.org>, linux-ext4@...r.kernel.org,
linux-xfs@...r.kernel.org, linux-cifs@...r.kernel.org,
<linux-nfs@...r.kernel.org>, linux-f2fs-devel@...ts.sourceforge.net,
linkinjeon@...nel.org, sj1557.seo@...sung.com, yuezhang.mo@...y.com,
almaz.alexandrovich@...agon-software.com, slava@...eyko.com,
glaubitz@...sik.fu-berlin.de, frank.li@...o.com, tytso@....edu,
adilger.kernel@...ger.ca, cem@...nel.org, sfrench@...ba.org,
pc@...guebit.org, ronniesahlberg@...il.com, sprasad@...rosoft.com,
trondmy@...nel.org, anna@...nel.org, jaegeuk@...nel.org,
chao@...nel.org, hansg@...nel.org, senozhatsky@...omium.org,
Chuck
Lever <chuck.lever@...cle.com>
Subject: Re: [PATCH v4 02/16] fat: Implement fileattr_get for case sensitivity
Chuck Lever <cel@...nel.org> writes:
> +int fat_fileattr_get(struct dentry *dentry, struct file_kattr *fa)
> +{
> + struct msdos_sb_info *sbi = MSDOS_SB(dentry->d_sb);
> +
> + /*
> + * FAT filesystems are case-insensitive by default. MSDOS
> + * supports a 'nocase' mount option for case-sensitive behavior.
> + *
> + * VFAT long filename entries preserve case. Without VFAT, only
> + * uppercased 8.3 short names are stored.
> + */
> + fa->case_insensitive = !sbi->options.nocase;
> + fa->case_nonpreserving = !sbi->options.isvfat;
> + return 0;
> +}
> +EXPORT_SYMBOL_GPL(fat_fileattr_get);
Hm, if "nocase" option is specified for msdos, it would be the case
preserving (ignores/breaks the spec though).
I.e. on msdos mount with "nocase" works like the following
$ touch aAa.txT
$ ls
aAa.txT
Thanks.
--
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
Powered by blists - more mailing lists