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

📄 test2.data

📁 操作系统课内实验部分
💻 DATA
字号:
/* This is a basic test file for the file system program.  It tests all/*  the basic commands as well as single indirection.formatDisk 100 10//CREATE FIRST file, write 10000 bytesfile1 = createinum1 = inumber file1write file1 HiThere 10000//CREATE SECOND file, seek 1000 bytes, write 1000 bytesfile2 = createinum2 = inumber file2seek file2 1000 0write file2 Yo 1000//READ 50 bytes from FIRST file at offset 9990seek file1 -10 1read file1 50//READ 50 bytes from SECOND file at offset 990seek file2 -1010 2read file2 50//CLOSE FIRST fileinumber file1close file1//CREATE THIRD file, write 1000 bytes, seek 10, write 1000 bytesfile3 = createwrite file3 Foo 1000seek file3 10 1write file3 Bar 1000//READ 30 bytes from THIRD file at offset 990seek file3 990 0read file3 30//OPEN FIRST file back into the systemfile1 = open inum1//READ 50 bytes from front of the FIRST fileread file1 50//CLOSE SECOND fileinumber file2close file2//CLEAR SECOND file with inum = 2delete inum2//OPEN SECOND file (should give an error)open inum2//SHUTDOWN the systemshutdown//QUIT the simulationquit

⌨️ 快捷键说明

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