[LTP] [PATCH v2] commands/mkfs/mkfs01.sh: fix mkfs

Rock Lee rocklee_104@outlook.com
Fri Nov 13 05:47:58 CET 2015


If a block device is specified when ./runltp -b , mkfs testcase may
fail because there is only "TYPE="vfat"" token in the output of blkid,
rather than "SEC_TYPE="msdos"". BTW, mkfs.msdos and mkfs.vfat are
the same.

Signed-off-by: Rock Lee <rocklee_104@outlook.com>
---
 testcases/commands/mkfs/mkfs01.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/commands/mkfs/mkfs01.sh
b/testcases/commands/mkfs/mkfs01.sh
index 5b62df4..31e3e15 100755
--- a/testcases/commands/mkfs/mkfs01.sh
+++ b/testcases/commands/mkfs/mkfs01.sh
@@ -93,7 +93,7 @@ mkfs_verify_type()
 		blkid $2 -t TYPE="ext2" >/dev/null
 	else
 		if [ "$1" = "msdos" ]; then
-			blkid $2 -t SEC_TYPE="$1" >/dev/null
+			blkid $2 -t TYPE="vfat" >/dev/null
 		else
 			blkid $2 -t TYPE="$1" >/dev/null
 		fi
-- 
2.6.2


More information about the Ltp mailing list