📄 test7pt2.data
字号:
// test7pt2.data: This is the second of a series of two tests that checks for// running out of disk blocks. This one will check what happens when you// need an INDIRECT block and there are none left.// 1. Format the disk with 100 blocks total, of which 10 are inode blocks.formatDisk 100 10// 2. Create two files -- each of which fill up 43 blocks (44 blocks if// the indirect block is included).file1 = createwrite file1 Bill_the_Cat_ 22016file2 = createwrite file2 Opus_the_Penguin_ 22016// 3. At this point, we should have 1 block left (remember the superblock).// Open a third file and write 1 block to it (using double indirection).// Choose block position 10000 in the file.file3 = createseek file3 5120000 0write file3 Milo_ 512// 4. 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 + -