All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] zram01: Specify filesystem type explicitly in mount
@ 2026-05-25 19:01 Avinesh Kumar via ltp
  2026-05-25 19:42 ` [LTP] " linuxtestproject.agent
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Avinesh Kumar via ltp @ 2026-05-25 19:01 UTC (permalink / raw)
  To: ltp

util-linux 2.42 converts "ntfs" to "ntfs3" during auto-detection,
causing mount failures on systems with CONFIG_NTFS3_FS disabled
even when ntfs-3g is available.

tst_supported_fs_types.c:141: TINFO: FUSE does support ntfs
tst_supported_fs_types.c:67: TINFO: mkfs.ntfs does exist
tst_supported_fs_types.c:137: TINFO: Filesystem ntfs3 is not supported
...
...
zram01 6 TINFO: mount /dev/zram7
mount: /tmp/LTP_zram01.YG3YHQhMER/zram7: unknown filesystem type 'ntfs3'.
       dmesg(1) may have more information after failed mount system call.
zram01 6 TBROK: mount /dev/zram7 zram7 failed

Fix by specifying -t option with the filesystem type that LTP
verified as supported, avoiding auto-detection.

Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
 testcases/kernel/device-drivers/zram/zram01.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/testcases/kernel/device-drivers/zram/zram01.sh b/testcases/kernel/device-drivers/zram/zram01.sh
index 793f6603c..4b7f2a753 100755
--- a/testcases/kernel/device-drivers/zram/zram01.sh
+++ b/testcases/kernel/device-drivers/zram/zram01.sh
@@ -94,13 +94,15 @@ zram_makefs()
 
 zram_mount()
 {
-	local i
+	local i=$dev_start
+	local fs
 
-	for i in $(seq $dev_start $dev_end); do
-		tst_res TINFO "mount /dev/zram$i"
+	for fs in $zram_filesystems; do
+		tst_res TINFO "mount /dev/zram$i ($fs)"
 		mkdir zram$i
-		ROD mount /dev/zram$i zram$i
+		ROD mount -t "$fs" /dev/zram$i zram$i
 		dev_mounted=$i
+		i=$((i + 1))
 	done
 
 	tst_res TPASS "mount of zram device(s) succeeded"
-- 
2.54.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-26 13:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-25 19:01 [LTP] [PATCH] zram01: Specify filesystem type explicitly in mount Avinesh Kumar via ltp
2026-05-25 19:42 ` [LTP] " linuxtestproject.agent
2026-05-26  7:18   ` Petr Vorel
2026-05-26  6:57 ` [LTP] [PATCH] " Petr Vorel
2026-05-26 12:24 ` Cyril Hrubis
2026-05-26 13:29   ` Petr Vorel

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.