3 # A really simple script to create a swap-backed msdosfs filesystem, then
4 # test to see if msdosfs_conv.c rev 1.45[1] works properly.
7 mdconfig -a -t swap -s 128m -u 10
9 newfs_msdos -F 16 -b 8192 /dev/md10a
10 mount_msdosfs -L uk_UA.KOI8-U -D CP866 -l /dev/md10a /tmp/msdosfstest
11 # The comment is UTF-8, the actual command uses the KOI8-U representation.
12 # mkdir /tmp/msdosfstest/і (CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I)
13 mkdir /tmp/msdosfstest/$'\246'
15 echo "ok 4 (pass stage 1/3)"
16 cd /tmp/msdosfstest/$'\246'
18 echo "ok 4 (pass stage 2/3)"
20 umount /tmp/msdosfstest
21 mount_msdosfs -L uk_UA.KOI8-U -D CP866 -s /dev/md10a /tmp/msdosfstest
22 cd /tmp/msdosfstest/_~1
24 echo "ok 4 (pass stage 3/3)"
35 umount /tmp/msdosfstest
37 rmdir /tmp/msdosfstest