[LTP] [PATCH v2] lib: treat ntfs3 as ntfs in filesystem skiplists

XiaoLei Wu wxl18715129466@gmail.com
Thu Jun 4 13:01:38 CEST 2026


ntfs3 is handled as a separate filesystem, but tests that skip ntfs
generally want to skip ntfs3 as well. Handle this in the common
skiplist check instead of adding ntfs3 to individual tests.

Signed-off-by: XiaoLei Wu <wxl18715129466@gmail.com>
---
Changes in v2:
- Move ntfs3 handling to tst_fs_in_skiplist() instead of adding ntfs3 to
  individual test skip lists.

 lib/tst_supported_fs_types.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/tst_supported_fs_types.c b/lib/tst_supported_fs_types.c
index d3020fc..d20c655 100644
--- a/lib/tst_supported_fs_types.c
+++ b/lib/tst_supported_fs_types.c
@@ -72,6 +72,9 @@ int tst_fs_in_skiplist(const char *fs_type, const char *const *skiplist)
 {
 	unsigned int i;
 
+	if (!strcmp(fs_type, "ntfs3"))
+		fs_type = "ntfs";
+
 	if (!skiplist)
 		return 0;
 
-- 
2.43.0


More information about the ltp mailing list