1#!/bin/sh
| 1#!/bin/sh
|
2# $FreeBSD: head/tools/regression/msdosfs/msdosfstest-6.sh 153946 2006-01-01 01:28:31Z avatar $
| 2# $FreeBSD: head/tools/regression/msdosfs/msdosfstest-6.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 nmount conversion(mount_msdosfs.c rev 1.37) 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 32 -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 nmount conversion(mount_msdosfs.c rev 1.37) 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 32 -b 8192 /dev/md10a 11mount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/
|
12mkdir '/tmp/msdosfstest/�O�_���L�{���`�����\�����\���y�\�b�Y�\�����|��' 13cd '/tmp/msdosfstest/�O�_���L�{���`�����\�����\���y�\�b�Y�\�����|��'
| 12# The comment is UTF-8, the actual command uses the Big5 representation. 13# mkdir /tmp/msdosfstest/��������������������������������������������������������������������� 14subdir=$'\254\117\247\137\254\335\271\114\247\173\266\241\261\140\250\243'\ 15$'\252\272\263\134\257\370\252\345\262\134\256\374\274\171\245\134'\ 16$'\256\142\246\131\273\134\266\272\262\304\245\174\266\260' 17mkdir /tmp/msdosfstest/$subdir 18cd /tmp/msdosfstest/$subdir
|
14if [ $? -eq 0 ]; then 15 echo "ok 6"; 16else 17 echo "not ok 6"; 18fi 19cd /tmp 20umount /tmp/msdosfstest/ 21mdconfig -d -u 10 22rm -rf /tmp/msdosfstest/
| 19if [ $? -eq 0 ]; then 20 echo "ok 6"; 21else 22 echo "not ok 6"; 23fi 24cd /tmp 25umount /tmp/msdosfstest/ 26mdconfig -d -u 10 27rm -rf /tmp/msdosfstest/
|