没有合适的资源?快使用搜索试试~ 我知道了~
首页操作系统课程设计报告-文件系统
操作系统课程设计报告-文件系统

操作系统课程设计实验报告 关于文件系统设计思路,由Disk,filesystem,intellegence file system组成
资源详情
资源评论
资源推荐

Project 3 report for OS 5090309739 董诗炜
Report for the 3
rd
project for OS
5090309739 董诗炜
Abstract:
This project is divided into three parts.BDS IDS and FS.
BDS is a basic disk server which can map a big file and simulate disk operations.
IDS is a more intelligent disk server which uses three different scheduling algorithm.
FS simulates a file system which uses the BDS as the disk server and keeps track of
the file.

Project 3 report for OS 5090309739 董诗炜
Catalog
Abstract: ........................................................................................................................... 1
1.BDS: (Basic Disk Server).................................................................................................... 3
1.1 Requirements:....................................................................................................... 3
1.2 Implementation:.................................................................................................... 3
1.2.1 Disk Protocol: .............................................................................................. 3
1.2.2 Disk Client ................................................................................................... 4
1.2.2 Project structure: ......................................................................................... 4
1.3 Running examples: ................................................................................................. 5
1.3.1 Input Format: .............................................................................................. 5
1.3.2 Test cases:............................................................................................. 6
2.IDS: (Intelligent Disk Server )............................................................................................. 6
2.1 Requirements:....................................................................................................... 6
2.2 Implementation:.................................................................................................... 7
2.3 Running examples: .............................................................................................. 7
2.3.1 Input Format: .............................................................................................. 7
2.3.2 Test cases:............................................................................................. 8
2.4 Test for different scheduling algorithm: ............................................................... 9
2.5 Some findings: .................................................................................................. 10
3. FS: (File System) ........................................................................................................... 10
3.1 Requirements:..................................................................................................... 10
3.2 Implementation:.................................................................................................. 10
3.2.1 The File-system Protocol ............................................................................. 11
3.2.2 Project structure ............................................................................................... 11
3.2.3 Difficulties........................................................................................................ 12
3.3 Running examples: ............................................................................................... 12
3.3.1 Input Format: ............................................................................................ 12
3.3.2 Test cases: ................................................................................................. 13
4.Thinkings: ..................................................................................................................... 15

Project 3 report for OS 5090309739 董诗炜
1.BDS: (Basic Disk Server)
1.1 Requirements:
Implement, as an Internet-domain socket server, a simulation of a physical disk. The
simulated disk is organized by cylinder and sector. You should include in your
simulation something to account for track-to-track time. Let this be a value in
microseconds, passed as a command-line parameter to the disk server program. Also,
let the number of cylinders and number of sectors per cylinder be command line
parameters. Assume the sector size is fixed at 256 bytes. Your simulation should store
the actual data in a real disk file, so you'll want a filename for this file as another
command line option.
1.2 Implementation:
1.2.1 Disk Protocol:
1) I: information request. The disk returns two integers representing the disk
geometry: the number of cylinders, and the number of sectors per cylinder.
2) R c s: read request for the contents of cylinder c sector s. The disk returns '1'
followed by those 256 bytes of information, or '0' if no such block exists. (This will
return whatever data happens to be on the disk in a given sector, even if nothing has
ever been explicitly written there before.)
3) W c s l data: write request for cylinder c sector s. l is the number of bytes being
provided, with a maximum of 256. The data is those 1 bytes of data. The disk returns
'1' to the client if it is a valid write request (legal values of c, s and l), or returns a '0'
剩余14页未读,继续阅读














安全验证
文档复制为VIP权益,开通VIP直接复制

评论6