From: Wei Gao via ltp <ltp@lists.linux.it>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v3] statx/statx04: Skip vfat and exfat filesystems
Date: Fri, 3 Jul 2026 12:59:29 +0000 [thread overview]
Message-ID: <20260703125958.21260-1-wegao@suse.com> (raw)
In-Reply-To: <20260703015745.20728-1-wegao@suse.com>
On newer kernels (v7.2-rc1+), vfat and exfat implement fileattr_get to
support reporting casefolding. This causes the FS_IOC_GETFLAGS ioctl to
return success, whereas on older kernels it returned ENOTTY.
Since FS_IOC_GETFLAGS succeeds, statx04 assumes standard writable inode
attributes (append, immutable, nodump) are supported on these
filesystems. However, they are not, causing the statx() attribute check
to fail with TFAIL.
This addresses the failures introduced by the following upstream Linux
kernel commits:
- 27e0b573dd4a ("exfat: Implement fileattr_get for case sensitivity")
- c92db2ca726f ("fat: Implement fileattr_get for case sensitivity")
Signed-off-by: Wei Gao <wegao@suse.com>
---
testcases/kernel/syscalls/statx/statx04.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/testcases/kernel/syscalls/statx/statx04.c b/testcases/kernel/syscalls/statx/statx04.c
index af30a200e..c029cd06e 100644
--- a/testcases/kernel/syscalls/statx/statx04.c
+++ b/testcases/kernel/syscalls/statx/statx04.c
@@ -47,6 +47,22 @@
*
* mm/shmem: support FS_IOC_[SG]ETFLAGS in tmpfs
*
+ * vfat and exfat are skipped because they do not support standard writable
+ * attributes (append, immutable, nodump) even though newer kernels support
+ * casefolding which causes FS_IOC_GETFLAGS to succeed since the following commits:
+ *
+ * commit 27e0b573dd4aa927670fbfd84732e569fde72078
+ * Author: Chuck Lever <cel@kernel.org>
+ * Date: Thu May 7 04:52:57 2026 -0400
+ *
+ * exfat: Implement fileattr_get for case sensitivity
+ *
+ * commit c92db2ca726fe61a66580d30ecff8c192a791935
+ * Author: Chuck Lever <cel@kernel.org>
+ * Date: Thu May 7 04:52:56 2026 -0400
+ *
+ * fat: Implement fileattr_get for case sensitivity
+ *
*/
#define _GNU_SOURCE
@@ -133,6 +149,8 @@ static struct tst_test test = {
.skip_filesystems = (const char *const[]) {
"fuse",
"ntfs",
+ "vfat",
+ "exfat",
NULL
},
.tags = (const struct tst_tag[]) {
@@ -141,6 +159,8 @@ static struct tst_test test = {
{"linux-git", "04a87e347282"},
{"linux-git", "5f955f26f3d4"},
{"linux-git", "e408e695f5f1"},
+ {"linux-git", "27e0b573dd4a"},
+ {"linux-git", "c92db2ca726f"},
{}
},
};
--
2.54.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-07-03 13:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 8:03 [LTP] [PATCH v1] statx/statx04: Skip testing casefolded filesystems Wei Gao via ltp
2026-07-01 9:11 ` [LTP] " linuxtestproject.agent
2026-07-02 11:43 ` [LTP] [PATCH v1] " Andrea Cervesato via ltp
2026-07-02 11:48 ` Andrea Cervesato via ltp
2026-07-02 13:00 ` Wei Gao via ltp
2026-07-02 13:09 ` Andrea Cervesato via ltp
2026-07-03 1:57 ` [LTP] [PATCH v2] statx/statx04: Skip vfat and exfat filesystems Wei Gao via ltp
2026-07-03 2:56 ` [LTP] " linuxtestproject.agent
2026-07-03 10:44 ` [LTP] [PATCH v2] " Avinesh Kumar via ltp
2026-07-03 12:59 ` Wei Gao via ltp [this message]
2026-07-03 15:14 ` [LTP] " linuxtestproject.agent
2026-07-05 18:45 ` [LTP] [PATCH v3] " Avinesh Kumar via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260703125958.21260-1-wegao@suse.com \
--to=ltp@lists.linux.it \
--cc=wegao@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.