📄 test6.data
字号:
// test6.data: Checks the error conditions of filling up the file table and// using all of the inodes. It will first create enough files to fill the// file table. Then it will begin closing files and adding new ones until// the number of inodes have been exhausted.// 1. Format the disk with 100 blocks total, of which 3 are inode blocksformatDisk 100 3// 2. Create 21 files to fill up the file tablefile1 = createfile2 = createfile3 = createfile4 = createfile5 = createfile6 = createfile7 = createfile8 = createfile9 = createfile10 = createfile11 = createfile12 = createfile13 = createfile14 = createfile15 = createfile16 = createfile17 = createfile18 = createfile19 = createfile20 = createfile21 = create// 3. Try to create a 22nd file, should give us an errorfile22 = create// 4. Now remove 3 files from the file table, and add 3 moreclose file1close file3close file5file1 = createfile3 = createfile5 = create// 5. Now all inodes have been used, try to create one more fileclose file10file10 = create// 6. Should have an error at this point, if the code has not terminated on// its own, then shutdown and quit the simulation.shutdownquit
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -