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 7mkdir /tmp/msdosfstest/ 8mdconfig -a -t swap -s 128m -u 10 9bsdlabel -w md10 auto 10newfs_msdos -F 16 -b 8192 /dev/md10a 11mount_msdosfs /dev/md10a /tmp/msdosfstest/ 12cat /tmp/msdosfstest/foo 13touch /tmp/msdosfstest/FOO 14cat /tmp/msdosfstest/foo 15if [ $? -eq 0 ]; then 16 echo "ok 2"; 17else 18 echo "not ok 2"; 19fi 20umount /tmp/msdosfstest/ 21mdconfig -d -u 10 22rmdir /tmp/msdosfstest/ 23