config root man

Current Path : /usr/src/tools/regression/msdosfs/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/tools/regression/msdosfs/msdosfstest-3.sh

#!/bin/sh
# $FreeBSD: release/9.1.0/tools/regression/msdosfs/msdosfstest-3.sh 145233 2005-04-18 13:06:43Z avatar $
# A really simple script to create a swap-backed msdosfs filesystem, then
# test to make sure the mbnambuf optimisation(msdosfs_conv.c rev 1.40)
# doesn't break multi-byte characters.

mkdir /tmp/msdosfstest/
mdconfig -a -t swap -s 128m -u 10
bsdlabel -w md10 auto
newfs_msdos -F 16 -b 8192 /dev/md10a
mount_msdosfs -L zh_TW.Big5 -D CP950 /dev/md10a /tmp/msdosfstest/
mkdir /tmp/msdosfstest/012345678_¨¸´c¤§¬ü
cd /tmp/msdosfstest/012345678_¨¸´c¤§¬ü
if [ $? -eq 0 ]; then
	echo "ok 3";
else
	echo "not ok 3";
fi
cd /tmp
umount /tmp/msdosfstest/
mdconfig -d -u 10
rmdir /tmp/msdosfstest/

Man Man