003 File Manager
Current Path:
/usr/src/tools/regression/msdosfs
usr
/
src
/
tools
/
regression
/
msdosfs
/
📁
..
📄
msdosfstest-2.sh
(574 B)
📄
msdosfstest-3.sh
(783 B)
📄
msdosfstest-4.sh
(1008 B)
📄
msdosfstest-5.sh
(1.37 KB)
📄
msdosfstest-6.sh
(957 B)
📄
msdosfstest.sh
(663 B)
Editing: msdosfstest-4.sh
#!/bin/sh # $FreeBSD$ # A really simple script to create a swap-backed msdosfs filesystem, then # test to see if msdosfs_conv.c rev 1.45[1] works properly. mkdir /tmp/msdosfstest mdconfig -a -t swap -s 128m -u 10 bsdlabel -w md10 auto newfs_msdos -F 16 -b 8192 /dev/md10a mount_msdosfs -L uk_UA.KOI8-U -D CP866 -l /dev/md10a /tmp/msdosfstest # The comment is UTF-8, the actual command uses the KOI8-U representation. # mkdir /tmp/msdosfstest/і (CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I) mkdir /tmp/msdosfstest/$'\246' if [ $? -eq 0 ]; then echo "ok 4 (pass stage 1/3)" cd /tmp/msdosfstest/$'\246' if [ $? -eq 0 ]; then echo "ok 4 (pass stage 2/3)" cd /tmp umount /tmp/msdosfstest mount_msdosfs -L uk_UA.KOI8-U -D CP866 -s /dev/md10a /tmp/msdosfstest cd /tmp/msdosfstest/_~1 if [ $? -eq 0 ]; then echo "ok 4 (pass stage 3/3)" else echo "not ok 4" fi else echo "not ok 4" fi else echo "not ok 4" fi cd /tmp umount /tmp/msdosfstest mdconfig -d -u 10 rmdir /tmp/msdosfstest
Upload File
Create Folder