test6.data

来自「操作系统课内实验部分」· DATA 代码 · 共 54 行

DATA
54
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?