]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - tools/regression/msdosfs/msdosfstest-2.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-2.sh
1 #!/bin/sh
2 # $FreeBSD$
3 # A really simple script to create a swap-backed msdosfs filesystem, then test to
4 # make sure the case conversion issue described in msdosfs_lookup.c rev 1.46
5 # is fixed.
6
7 mkdir /tmp/msdosfstest/
8 mdconfig -a -t swap -s 128m -u 10
9 bsdlabel -w md10 auto
10 newfs_msdos -F 16 -b 8192 /dev/md10a
11 mount_msdosfs /dev/md10a /tmp/msdosfstest/
12 cat /tmp/msdosfstest/foo
13 touch /tmp/msdosfstest/FOO
14 cat /tmp/msdosfstest/foo
15 if [ $? -eq 0 ]; then
16         echo "ok 2";
17 else
18         echo "not ok 2";
19 fi
20 umount /tmp/msdosfstest/
21 mdconfig -d -u 10
22 rmdir /tmp/msdosfstest/