1145233Savatar#!/bin/sh
2145233Savatar# $FreeBSD$
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/
12145233Savatarmkdir /tmp/msdosfstest/012345678_���c����
13145233Savatarcd /tmp/msdosfstest/012345678_���c����
14145233Savatarif [ $? -eq 0 ]; then
15145233Savatar	echo "ok 3";
16145233Savatarelse
17145233Savatar	echo "not ok 3";
18145233Savatarfi
19145233Savatarcd /tmp
20145233Savatarumount /tmp/msdosfstest/
21145233Savatarmdconfig -d -u 10
22145233Savatarrmdir /tmp/msdosfstest/
23