newtsts

来自「早期freebsd实现」· 代码 · 共 70 行

TXT
70
字号
#!/bin/csh -fset echoset time=2if ($#argv < 2) then	echo "Usage: newtsts special disk-type"	exit 1endifecho "8K/1K file system on $1 type $2"/etc/newfs $1 $2/etc/mount $1 /mntmkdir /mnt/fststsif (! -e bin) then	mkdir bin	cc -o bin/write_4096 write_4096.c	cc -o bin/write_8192 write_8192.c	cc -o bin/rewrite_8192 rewrite_8192.c	cc -o bin/read_8192 read_8192.cendifecho "write_4096"rm -f /mnt/fststs/tst2bin/write_4096 /mnt/fststs/tst2rm -f /mnt/fststs/tst2bin/write_4096 /mnt/fststs/tst2rm -f /mnt/fststs/tst2bin/write_4096 /mnt/fststs/tst2echo "write_8192"rm -f /mnt/fststs/tst2bin/write_8192 /mnt/fststs/tst2rm -f /mnt/fststs/tst2bin/write_8192 /mnt/fststs/tst2rm -f /mnt/fststs/tst2bin/write_8192 /mnt/fststs/tst2echo "rewrite_8192"bin/rewrite_8192 /mnt/fststs/tst2bin/rewrite_8192 /mnt/fststs/tst2bin/rewrite_8192 /mnt/fststs/tst2echo "read_8192"bin/read_8192 /mnt/fststs/tst2bin/read_8192 /mnt/fststs/tst2bin/read_8192 /mnt/fststs/tst2umount $1syncechoecho "4K/1K file system on $1 type $2"newfs $1 $2mount $1 /mntmkdir /mnt/fststsrm -f /mnt/fststs/tst2bin/write_4096 /mnt/fststs/tst2rm -f /mnt/fststs/tst2bin/write_4096 /mnt/fststs/tst2rm -f /mnt/fststs/tst2bin/write_4096 /mnt/fststs/tst2echo "write_8192"rm -f /mnt/fststs/tst2bin/write_8192 /mnt/fststs/tst2rm -f /mnt/fststs/tst2bin/write_8192 /mnt/fststs/tst2rm -f /mnt/fststs/tst2bin/write_8192 /mnt/fststs/tst2echo "rewrite_8192"bin/rewrite_8192 /mnt/fststs/tst2bin/rewrite_8192 /mnt/fststs/tst2bin/rewrite_8192 /mnt/fststs/tst2echo "read_8192"bin/read_8192 /mnt/fststs/tst2bin/read_8192 /mnt/fststs/tst2bin/read_8192 /mnt/fststs/tst2echo "done"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?