msdosfstest.sh revision 144784
1#!/bin/sh 2# $FreeBSD: head/tools/regression/msdosfs/msdosfstest.sh 144784 2005-04-08 07:21:07Z silby $ 3# A really simple script to create a swap-backed msdosfs filesystem, copy a few 4# files to it, unmount/remount the filesystem, and make sure all is well. 5# 6# Not very advanced, but better than nothing. 7mdconfig -a -t swap -s 128m -u 10 8bsdlabel -w md10 auto 9newfs_msdos -F 16 -b 8192 /dev/md10a 10mount_msdosfs /dev/md10a /mnt/thumb/ 11cp -R /usr/src/bin/ /mnt/thumb/ 12umount /mnt/thumb 13mount_msdosfs /dev/md10a /mnt/thumb/ 14diff -u -r /usr/src/bin /mnt/thumb 15if [ $? -eq 0 ]; then 16 echo "ok 1"; 17else 18 echo "not ok 1"; 19fi 20umount /mnt/thumb 21mdconfig -d -u 10 22