Skip to contentSkip to conversation

test_robind.sh: fix BROK: mkfs.f2fs /dev/sdb1 failed

PATCH Applied Jie2x Zhou 2 participants 2 messages Nov 14, 2022 – Nov 15, 2022

lore
Share & tools
lore

Jie2x Zhou

author
#0 lore raw

PATCH 1/1 test_robind.sh: fix BROK: mkfs.f2fs /dev/sdb1 failed

Error output:
test_robind 1 TINFO: Formatting /dev/sda1 with f2fs extra opts=''

        F2FS-tools: mkfs.f2fs Ver: 1.14.0 (2020-08-24)

Info: Disable heap-based policy
Info: Debug level = 0
Info: Trim is enabled
/dev/sda1 appears to contain an existing filesystem (f2fs). Use the -f option to force overwrite.
test_robind 1 TBROK: mkfs.f2fs /dev/sda1 failed

Reason:
Test error is caused by miss "-f" option when do mkfs.f2fs.

---
 testcases/kernel/fs/fs_readonly/test_robind.sh | 2 ++
 1 file changed, 2 insertions(+)
testcases/kernel/fs/fs_readonly/test_robind.sh +2 -0
index bab2648f4..2d9a87b7e 100755
@@ -200,6 +200,8 @@ for fstype in $FSTYPES; do
 		opts="-F"
 	elif [ "$fstype" = "xfs" ]; then
 		opts="-f"
+	elif [ "$fstype" = "f2fs" ]; then
+		opts="-f"
 	elif [ "$fstype" = "btrfs" ]; then
 		opts="-f"
 	fi
Signature · 5 lines
2.38.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hello,

Merged, thanks!

Quoted 35 lines · Jie2x Zhou <[email protected]> writes:

Error output:
test_robind 1 TINFO: Formatting /dev/sda1 with f2fs extra opts=''

        F2FS-tools: mkfs.f2fs Ver: 1.14.0 (2020-08-24)

Info: Disable heap-based policy
Info: Debug level = 0
Info: Trim is enabled
/dev/sda1 appears to contain an existing filesystem (f2fs). Use the -f option to force overwrite.
test_robind 1 TBROK: mkfs.f2fs /dev/sda1 failed

Reason:
Test error is caused by miss "-f" option when do mkfs.f2fs.

---
 testcases/kernel/fs/fs_readonly/test_robind.sh | 2 ++
 1 file changed, 2 insertions(+)
testcases/kernel/fs/fs_readonly/test_robind.sh +2 -0
index bab2648f4..2d9a87b7e 100755
@@ -200,6 +200,8 @@ for fstype in $FSTYPES; do
 		opts="-F"
 	elif [ "$fstype" = "xfs" ]; then
 		opts="-f"
+	elif [ "$fstype" = "f2fs" ]; then
+		opts="-f"
 	elif [ "$fstype" = "btrfs" ]; then
 		opts="-f"
 	fi
Signature · 1 line
2.38.1
Signature · 5 lines
Thank you,
Richard.

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