[LTP] [PATCH 2/3] lib/test.sh: special case jfs in tst_mkfs
Eryu Guan
eguan@redhat.com
Thu Nov 5 15:35:00 CET 2015
jfs needs "-f" option too.
Signed-off-by: Eryu Guan <eguan@redhat.com>
---
testcases/lib/test.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/lib/test.sh b/testcases/lib/test.sh
index 6de39b9..31c99ee 100644
--- a/testcases/lib/test.sh
+++ b/testcases/lib/test.sh
@@ -271,7 +271,7 @@ tst_mkfs()
local device=$2
local fs_opts=""
- if [ $fs_type = "xfs" ]; then
+ if [ $fs_type = "xfs" -o $fs_type = "jfs" ]; then
tst_resm TINFO "Appending '-f' flag to mkfs.$fs_type"
fs_opts="-f"
fi
--
2.5.0
More information about the Ltp
mailing list