Deleted Added
full compact
msdosfstest-4.sh (148117) msdosfstest-4.sh (229656)
1#!/bin/sh
1#!/bin/sh
2# $FreeBSD: head/tools/regression/msdosfs/msdosfstest-4.sh 148117 2005-07-18 12:15:24Z imura $
2# $FreeBSD: head/tools/regression/msdosfs/msdosfstest-4.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 see if msdosfs_conv.c rev 1.45[1] works properly.
5
6mkdir /tmp/msdosfstest
7mdconfig -a -t swap -s 128m -u 10
8bsdlabel -w md10 auto
9newfs_msdos -F 16 -b 8192 /dev/md10a
10mount_msdosfs -L uk_UA.KOI8-U -D CP866 -l /dev/md10a /tmp/msdosfstest
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.
5
6mkdir /tmp/msdosfstest
7mdconfig -a -t swap -s 128m -u 10
8bsdlabel -w md10 auto
9newfs_msdos -F 16 -b 8192 /dev/md10a
10mount_msdosfs -L uk_UA.KOI8-U -D CP866 -l /dev/md10a /tmp/msdosfstest
11# mkdir /tmp/msdosfstest/U+0456 (CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I)
12mkdir /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)
13mkdir /tmp/msdosfstest/$'\246'
13if [ $? -eq 0 ]; then
14 echo "ok 4 (pass stage 1/3)"
14if [ $? -eq 0 ]; then
15 echo "ok 4 (pass stage 1/3)"
15 # cd /tmp/msdosfstest/U+0456 (CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I)
16 cd /tmp/msdosfstest/�
16 cd /tmp/msdosfstest/$'\246'
17 if [ $? -eq 0 ]; then
18 echo "ok 4 (pass stage 2/3)"
19 cd /tmp
20 umount /tmp/msdosfstest
21 mount_msdosfs -L uk_UA.KOI8-U -D CP866 -s /dev/md10a /tmp/msdosfstest
22 cd /tmp/msdosfstest/_~1
23 if [ $? -eq 0 ]; then
24 echo "ok 4 (pass stage 3/3)"

--- 13 unchanged lines hidden ---
17 if [ $? -eq 0 ]; then
18 echo "ok 4 (pass stage 2/3)"
19 cd /tmp
20 umount /tmp/msdosfstest
21 mount_msdosfs -L uk_UA.KOI8-U -D CP866 -s /dev/md10a /tmp/msdosfstest
22 cd /tmp/msdosfstest/_~1
23 if [ $? -eq 0 ]; then
24 echo "ok 4 (pass stage 3/3)"

--- 13 unchanged lines hidden ---