- 0
- 0
- 约5.58千字
- 约 34页
- 2023-10-24 发布于浙江
- 举报
操作系统教学课件OS_11
Chapter 11: File System ImplementationFile System StructureFile System Implementation Directory ImplementationAllocation MethodsFree-Space Management Recovery (恢复)Log-Structured File Systems(基于日志的文件系统)NFS2
Objectives (P411)To describe the details of implementing local file systems and directory structures.To describe the implementation of remote file systems.To discuss block allocation and free-block algorithms and trade-offs.3
File-System Structure (P412)File structureLogical storage unitCollection of related informationFile system resides on secondary storage (disks).File system organized into layers.File control block – storage structure consisting of information about a file.4
Layered File System (P412)5
A Typical File Control Block (P415)6
In-Memory File System Structures (P416)The following figure illustrates the necessary file system structures provided by the operating systems.Figure 11-3(a) refers to opening a file.Figure 11-3(b) refers to reading a file.7
In-Memory File System Structures (P416)8
Virtual File Systems (P417)(P417) Two questionsVirtual File Systems (VFS) provide an object-oriented way of implementing file systems.VFS allows the same system call interface (the API) to be used for different types of file systems.The API is to the VFS interface, rather than any specific type of file system. (see figure 11.4)9
Schematic View of Virtual File System (P418)10
Directory Implementation (P420)Linear list of file names with pointer to the data blocks.simple to programtime-consuming to executeHash Table – linear list with hash data structure.decreases directory search timecollisions – situations where two file names hash to the same locationfixed size11
Allocation Methods (P420)An allocation method refers to how disk blocks are allocated for files:Contiguous allocation (连续分配)Linked allocation (链接分配)Indexed allocation (索引分配)12
Contiguous Allocation (P421)Each file occupies a set of contiguous blocks on the disk.Simple – only starting locat
您可能关注的文档
最近下载
- 学前儿童保育学 第一章 学前儿童保育学概述 教学PPT课件.pptx VIP
- 党员对照“学习贯彻党的创新理论、联系服务群众、改作风树新风方面”(五个对照)2025年度组织生活会个人对照检查材料4篇.docx VIP
- 2025年度围绕带头强化政治忠诚、提高政治能力方面等五个带头存在的问题查摆及整改措施【八篇】.docx VIP
- 灌区续建配套与节水改造组织设计.docx VIP
- SMTC 5 400 241 汽车材料防污和耐清洁剂能力(120105).pdf VIP
- 《交通建设危险性较大分部分项工程专项施工方案编制指南》.pdf VIP
- 2025年江苏医药职业学院单招《数学》常考点试卷及参考答案详解(轻巧夺冠).docx VIP
- 2022河南大学版四年级信息技术下册全册教案.pdf VIP
- 初中生交通安全讲座课件.ppt VIP
- 连接器产品设计规范.pdf VIP
原创力文档

文档评论(0)