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.
6 # Not very advanced, but better than nothing.
7 mkdir /tmp/msdosfstest/
8 mdconfig -a -t swap -s 128m -u 10
10 newfs_msdos -F 16 -b 8192 /dev/md10a
11 mount_msdosfs /dev/md10a /tmp/msdosfstest/
12 cp -R /usr/src/bin/ /tmp/msdosfstest/
13 umount /tmp/msdosfstest/
14 mount_msdosfs /dev/md10a /tmp/msdosfstest/
15 diff -u -r /usr/src/bin /tmp/msdosfstest/
21 umount /tmp/msdosfstest/
23 rmdir /tmp/msdosfstest/