1#!/bin/sh
2# A really simple script to create a swap-backed msdosfs filesystem, then test to
3# make sure the case conversion issue described in msdosfs_lookup.c rev 1.46
4# is fixed.
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 /dev/md10a /tmp/msdosfstest/
11cat /tmp/msdosfstest/foo
12touch /tmp/msdosfstest/FOO
13cat /tmp/msdosfstest/foo
14if [ $? -eq 0 ]; then
15        echo "ok 2";
16else
17        echo "not ok 2";
18fi
19umount /tmp/msdosfstest/
20mdconfig -d -u 10
21rmdir /tmp/msdosfstest/
22