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

📄 test7pt1.data

📁 操作系统课内实验部分
💻 DATA
字号:
// test7pt1.data:  This is the first of a series of two tests that checks for// running out of disk blocks.  This one will check what happens when you// need a DATA block and there are none left.// 1. Format the disk with 10 blocks total, of which 4 are inode blocks.formatDisk 10 4// 2. Create two files -- each of which fill up 2 blocksfile1 = createwrite file1 Bill_the_Cat_ 1024file2 = createwrite file2 Opus_the_Penguin_ 1024// 3. At this point, we should have 1 block left (remember the superblock).//    Open a third file and write 1 block to it.file3 = createwrite file3 Milo_ 512// 4. Now we have no blocks left.  Write a final block to the third file.write file3 Portnoy_ 512// 5. We should have an error for running out of disk blocks.  If the program //    did not terminate, then shutdown and quit.shutdownquit

⌨️ 快捷键说明

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