⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newtsts

📁 早期freebsd实现
💻
字号:
#!/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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -