河北大学 2009 级操作系统学年论文(课程设计)
目 录
ABSTRACT.................................................................................................................................................1
一 引言.........................................................................................................................................................1
1.1性质...............................................................................................................................................................1
2.2 教学目的......................................................................................................................................................1
2.3 任务和要求..................................................................................................................................................1
2.4意义...............................................................................................................................................................1
2.5 论文结构安排..............................................................................................................................................1
二 系统分析与设计.....................................................................................................................................3
2.1系统要求.......................................................................................................................................................3
2.2 实现方法和原理..........................................................................................................................................3
2.2.1文件的逻辑结构........................................................................................................................................3
2.2.2文件的物理结构........................................................................................................................................3
2.2.3目录结构....................................................................................................................................................4
2.2.4磁盘状态....................................................................................................................................................5
2.2.5用户接口....................................................................................................................................................6
三 系统实现.................................................................................................................................................7
3.1磁盘管理.......................................................................................................................................................7
3.1.1全局变量....................................................................................................................................................7
3.1.2磁盘的初始化函数....................................................................................................................................7
3.1.2磁盘的分配................................................................................................................................................8
3.1.4磁盘的归还................................................................................................................................................9
3.1.5磁盘状态的显示........................................................................................................................................9
3.2目录结构的实现.........................................................................................................................................10
3.2.1创建目录..................................................................................................................................................11
3.2.2删除空目录..............................................................................................................................................13
3.2.3删除目录..................................................................................................................................................13
3.3文件.............................................................................................................................................................14
3.3.1建立文件..................................................................................................................................................15
3.3.2删除文件..................................................................................................................................................15
3.3.4复制文件..................................................................................................................................................18
3.3.5移动文件..................................................................................................................................................18
3.3.6文件的长期存储......................................................................................................................................18
3.4用户接口.....................................................................................................................................................20
3.4.1流程图......................................................................................................................................................20
四 结束语...................................................................................................................................................22
参考文献...........................................................................................................................22