1#!/bin/sh
| 1#!/bin/sh
|
2# $FreeBSD: head/tools/regression/msdosfs/msdosfstest-3.sh 145233 2005-04-18 13:06:43Z avatar $
| 2# $FreeBSD: head/tools/regression/msdosfs/msdosfstest-3.sh 229656 2012-01-05 21:36:53Z uqs $
|
3# A really simple script to create a swap-backed msdosfs filesystem, then 4# test to make sure the mbnambuf optimisation(msdosfs_conv.c rev 1.40) 5# doesn't break multi-byte characters. 6 7mkdir /tmp/msdosfstest/ 8mdconfig -a -t swap -s 128m -u 10 9bsdlabel -w md10 auto 10newfs_msdos -F 16 -b 8192 /dev/md10a 11mount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/
| 3# A really simple script to create a swap-backed msdosfs filesystem, then 4# test to make sure the mbnambuf optimisation(msdosfs_conv.c rev 1.40) 5# doesn't break multi-byte characters. 6 7mkdir /tmp/msdosfstest/ 8mdconfig -a -t swap -s 128m -u 10 9bsdlabel -w md10 auto 10newfs_msdos -F 16 -b 8192 /dev/md10a 11mount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/
|
12mkdir /tmp/msdosfstest/012345678_���c���� 13cd /tmp/msdosfstest/012345678_���c����
| 12# The comment is UTF-8, the actual command uses the Big5 representation. 13# mkdir /tmp/msdosfstest/012345678_������������ 14mkdir /tmp/msdosfstest/012345678_$'\250\270\264\143\244\247\254\374' 15cd /tmp/msdosfstest/012345678_$'\250\270\264\143\244\247\254\374'
|
14if [ $? -eq 0 ]; then 15 echo "ok 3"; 16else 17 echo "not ok 3"; 18fi 19cd /tmp 20umount /tmp/msdosfstest/ 21mdconfig -d -u 10 22rmdir /tmp/msdosfstest/
| 16if [ $? -eq 0 ]; then 17 echo "ok 3"; 18else 19 echo "not ok 3"; 20fi 21cd /tmp 22umount /tmp/msdosfstest/ 23mdconfig -d -u 10 24rmdir /tmp/msdosfstest/
|