test_robind.sh: fix BROK: mkfs.f2fs /dev/sdb1 failed
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
@@ -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
Richard Palethorpe
AppliedHello,
Merged, thanks!
Quoted 35 lines · Jie2x Zhou <[email protected]> writes:
Error output:
test_robind1 TINFO: Formatting/dev/sda1with 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/sda1appears to contain an existing filesystem (f2fs). Use the -f option to force overwrite.test_robind1 TBROK: mkfs.f2fs/dev/sda1failedReason:
Test error is caused by miss "-f" option when do mkfs.f2fs.Signed-off-by Jie2x Zhou <[email protected]>--- testcases/kernel/fs/fs_readonly/test_robind.sh | 2 ++ 1 file changed, 2 insertions(+)testcases/kernel/fs/fs_readonly/test_robind.sh +2
-0@@ -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" fiSignature · 1 line
2.38.1
Signature · 5 lines
Thank you, Richard. -- Mailing list info: https://lists.linux.it/listinfo/ltp