]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - tools/regression/msdosfs/msdosfstest-6.sh
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / tools / regression / msdosfs / msdosfstest-6.sh
1 #!/bin/sh
2 # $FreeBSD$
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
7 mkdir /tmp/msdosfstest/
8 mdconfig -a -t swap -s 128m -u 10
9 bsdlabel -w md10 auto
10 newfs_msdos -F 32 -b 8192 /dev/md10a
11 mount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/
12 mkdir '/tmp/msdosfstest/¬O§_¬Ý¹L§{¶¡±`¨£ªº³\¯øªå²\®ü¼y¥\®b¦Y»\¶º²Ä¥|¶°'
13 cd '/tmp/msdosfstest/¬O§_¬Ý¹L§{¶¡±`¨£ªº³\¯øªå²\®ü¼y¥\®b¦Y»\¶º²Ä¥|¶°'
14 if [ $? -eq 0 ]; then
15         echo "ok 6";
16 else
17         echo "not ok 6";
18 fi
19 cd /tmp
20 umount /tmp/msdosfstest/
21 mdconfig -d -u 10
22 rm -rf /tmp/msdosfstest/