[LTP] [PATCH] lib: LTP_SINGLE_FS_TYPE fix fuse blacklist
Cyril Hrubis
chrubis@suse.cz
Wed May 21 11:53:02 CEST 2025
The case of LTP_SINGLE_FS_TYPE did not proplerly used the fuse
filesystem blacklist and we enabled fuse filesystem even for tests that
explicitly stated in the tst_test structure that they do not work with
fuse.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
CC: Jan Polensky <japo@linux.ibm.com>
---
lib/tst_supported_fs_types.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/tst_supported_fs_types.c b/lib/tst_supported_fs_types.c
index bbbb8df19..3a394283c 100644
--- a/lib/tst_supported_fs_types.c
+++ b/lib/tst_supported_fs_types.c
@@ -158,8 +158,10 @@ const char **tst_get_supported_fs_types(const char *const *skiplist)
only_fs = getenv("LTP_SINGLE_FS_TYPE");
if (only_fs) {
+ enum tst_fs_impl ret;
tst_res(TINFO, "WARNING: testing only %s", only_fs);
- if (tst_fs_is_supported(only_fs))
+ ret = tst_fs_is_supported(only_fs);
+ if (ret == TST_FS_KERNEL || (ret == TST_FS_FUSE && !skip_fuse))
fs_types[0] = only_fs;
return fs_types;
}
--
2.45.2
More information about the ltp
mailing list