Skip to contentSkip to conversation

commands/mkfs/mkfs01.sh: fix mkfs

PATCH New Rock Lee 2 participants 2 messages Nov 13, 2015 – Nov 16, 2015

lore
Share & tools
lore

Rock Lee

author
#0 lore raw

PATCH v2 1/1 commands/mkfs/mkfs01.sh: fix mkfs

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.

---
 testcases/commands/mkfs/mkfs01.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/testcases/commands/mkfs/mkfs01.sh
index 5b62df4..31e3e15 100755

testcases/commands/mkfs/mkfs01.sh +1 -1
@@ -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
Signature · 1 line
2.6.2