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

XiaoLei Wu <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
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 <[email protected]>
---
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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.