1、 1 操作系统之文件管理部分的设计与实现操作系统之文件管理部分的设计与实现 摘摘 要要 本系统根据操作系统理论课上学习的操作系统中关于文件管理实现方法,在 采用混合索引文件结构、成组链接法的基础上实现单用户的磁盘文件管理部分, 包括:文件的逻辑结构、文件的物理结构、目录结构、磁盘分配回收、文件的保 护和用户接口。 本论文主要阐述四部分内容,引言部分,主要说明本次操作系统课程设计的 性质、教学目的、教学任务与要求、意义以及论文的结构安排;系统分析与设计 部分,主要阐述系统的主要功能模块以及每个模块计划采用的实现方法和原理; 系统实现部分,主要通过流程图等工具描述主要模块的实现流程;最后一部分,
2、结束语部分,主要书写已经实现的本系统存在的不足、改进方案和在课程设计中 的实际感受。 关键词:操作系统 文件管理 混合索引 成组链接 2 ABSTRACTABSTRACT According to the system operating on the theory of learning in the operating system on the document management method, used in mixed-index file structure of the groups links to law based on single-user disk file ma
3、nagement, including: the logical structure of the document, document The physical structure of the directory structure, the distribution of the recovery disk, file protection and user interface. This paper on a four-part, the introductory remarks, the main operating system that the nature of the cur
4、riculum design, the purpose of teaching, teaching and mission requirements, as well as the significance of the paper structure; part of the analysis and design, mainly on core functions of the system modules Each module, as well as the realization of the plan to adopt the methods and principles; par
5、t of the system, mainly through the flow chart, and other tools to describe the main module of the process to achieve; the last part of the concluding part of the writing has been the main achievement of the shortcomings of the system to improve the program and Curriculum design in the real feelings
6、. key words: Operating system Document Management Index Mixed Groups links 1 目目 录录 目 录 .1 一 引言 .1 1.1 性质 .1 1.2 教学目的 .1 1.3 任务和要求 1 1.4 意义 .1 1.5 论文结构安排 2 二 文件管理部分系统分析与设计 .2 2.1 系统要求 2 2.2 文件存储的实现方法和原理 .2 2.2.1 磁盘模拟 .2 2.2.2 文件的逻辑结构 .2 2.2.3 文件的物理结构 .3 2.2.4 目录结构 .3 2.2.5 磁盘分配 .3 2.2.6 用户接口 .3 2.2.7 屏幕显示 .5 2.3 磁盘管理 .5 2.3.1 磁盘的分配 5 2.3.2 磁盘的归还 5 2.3.3 磁盘状态的显示 .5 2.3.4 磁盘空闲块数显示 .5 三 系统实现 6 3.1 磁盘管理 6 3.1.1 磁盘初始化 6 3.1.2 磁盘的分配 7 3.1.3 磁盘的注销 7 3.1.4 磁盘盘块的颜色显示 8 3