* [LTP] [PATCH] test_robind.sh: fix BROK: mkfs.f2fs /dev/sdb1 failed
@ 2022-11-14 6:20 Jie2x Zhou
2022-11-15 10:15 ` Richard Palethorpe
0 siblings, 1 reply; 2+ messages in thread
From: Jie2x Zhou @ 2022-11-14 6:20 UTC (permalink / raw)
To: jie2x.zhou, ltp; +Cc: Philip Li
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.
Signed-off-by: Jie2x Zhou <jie2x.zhou@intel.com>
---
testcases/kernel/fs/fs_readonly/test_robind.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testcases/kernel/fs/fs_readonly/test_robind.sh b/testcases/kernel/fs/fs_readonly/test_robind.sh
index bab2648f4..2d9a87b7e 100755
--- a/testcases/kernel/fs/fs_readonly/test_robind.sh
+++ b/testcases/kernel/fs/fs_readonly/test_robind.sh
@@ -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
--
2.38.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH] test_robind.sh: fix BROK: mkfs.f2fs /dev/sdb1 failed
2022-11-14 6:20 [LTP] [PATCH] test_robind.sh: fix BROK: mkfs.f2fs /dev/sdb1 failed Jie2x Zhou
@ 2022-11-15 10:15 ` Richard Palethorpe
0 siblings, 0 replies; 2+ messages in thread
From: Richard Palethorpe @ 2022-11-15 10:15 UTC (permalink / raw)
To: Jie2x Zhou; +Cc: Philip Li, ltp
Hello,
Merged, thanks!
Jie2x Zhou <jie2x.zhou@intel.com> 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.
>
> Signed-off-by: Jie2x Zhou <jie2x.zhou@intel.com>
> ---
> testcases/kernel/fs/fs_readonly/test_robind.sh | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/testcases/kernel/fs/fs_readonly/test_robind.sh b/testcases/kernel/fs/fs_readonly/test_robind.sh
> index bab2648f4..2d9a87b7e 100755
> --- a/testcases/kernel/fs/fs_readonly/test_robind.sh
> +++ b/testcases/kernel/fs/fs_readonly/test_robind.sh
> @@ -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
> --
> 2.38.1
--
Thank you,
Richard.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-15 10:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14 6:20 [LTP] [PATCH] test_robind.sh: fix BROK: mkfs.f2fs /dev/sdb1 failed Jie2x Zhou
2022-11-15 10:15 ` Richard Palethorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox