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

📄 test5pt2.data

📁 操作系统课内实验部分
💻 DATA
字号:
// test5pt2.data:  Tests the flushing of data to disk.// This is the second part of a two part test.  It will read in the files// created in part 1 and make sure that the data was written to disk// correctly.  // 1. Open and check file1.file1 = open 1// Check block 0read file1 10// Data read should be "Happiness_"// Check block 1seek file1 512 0read file1 10// Data read should be "ppiness_Ha"// 2. Open and check file2.file2 = open 2// Check block 20seek file2 10491 0read file2 10// Data read should be "\0\0\0\0\0is_a_"// Check block 21seek file2 11003 0read file2 10// Data read should be "_a_is" // Open and check file 3.file3 = open 3// Block 143seek file3 73467 0read file3 10// Data read should be "\0\0\0\0\0warm_"// Block 144seek file3 73984 0read file3 10// Data read should be "uppy_warm_"// Block 146seek file3 75003 0read file3 10// Data read should be "rm_pu\0\0\0\0\0"// Block 130221seek file3 66673403 0read file3 10// Data read should be "\0\0\0\0\0warm_"// Block 130222seek file3  66673920 0read file3 10// Data read should be "uppy_warm_"// Block 130224seek file3 66674939 0 read file3 10// Data read should be "rm_pu"// 4. Close all filesclose file1close file2close file3// 4. Shut down and quitshutdownquit

⌨️ 快捷键说明

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