msdosfstest-3.sh revision 229656
1145233Savatar#!/bin/sh 2145233Savatar# $FreeBSD: head/tools/regression/msdosfs/msdosfstest-3.sh 229656 2012-01-05 21:36:53Z uqs $ 3145233Savatar# A really simple script to create a swap-backed msdosfs filesystem, then 4145233Savatar# test to make sure the mbnambuf optimisation(msdosfs_conv.c rev 1.40) 5145233Savatar# doesn't break multi-byte characters. 6145233Savatar 7145233Savatarmkdir /tmp/msdosfstest/ 8145233Savatarmdconfig -a -t swap -s 128m -u 10 9145233Savatarbsdlabel -w md10 auto 10145233Savatarnewfs_msdos -F 16 -b 8192 /dev/md10a 11145233Savatarmount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/ 12229656Suqs# The comment is UTF-8, the actual command uses the Big5 representation. 13229656Suqs# mkdir /tmp/msdosfstest/012345678_������������ 14229656Suqsmkdir /tmp/msdosfstest/012345678_$'\250\270\264\143\244\247\254\374' 15229656Suqscd /tmp/msdosfstest/012345678_$'\250\270\264\143\244\247\254\374' 16145233Savatarif [ $? -eq 0 ]; then 17145233Savatar echo "ok 3"; 18145233Savatarelse 19145233Savatar echo "not ok 3"; 20145233Savatarfi 21145233Savatarcd /tmp 22145233Savatarumount /tmp/msdosfstest/ 23145233Savatarmdconfig -d -u 10 24145233Savatarrmdir /tmp/msdosfstest/ 25