中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)11 File 文件系统实现 File system implementation

提纲 File-System Structure FS Implementation Directory Implementation Allocation Methods(分配方法) Free-Space Management Efficiency(空间)and Performance(时间) Recovery Log Structured File Systems 小结 4口”484在4色,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 提纲 File-System Structure FS Implementation Directory Implementation Allocation Methods (分配方法) Free-Space Management Efficiency (空间) and Performance (时间) Recovery Log Structured File Systems 小结

File-System Structure File structure Logical storage unit Collection of related informationapplication programs ↓ FS resides on secondary storage File name logical file system (disks) ↓ FS organization Logical block address file-organization module How FS should look to the user ↓ Physical block address How to map the logical FS onto basic file system the physical secondary-storage ↓ Issue commands to l/O to retrieve physical block devices l/O control FS organized into layers Hardware-specific instructions devices Figure:Layered File System 口”48+4在4色”主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . File-System Structure ▶ File structure ▶ Logical storage unit ▶ Collection of related information ▶ FS resides on secondary storage (disks) ▶ FS organization ▶ How FS should look to the user ▶ How to map the logical FS onto the physical secondary-storage devices ▶ FS organized into layers application programs File name logical file system Logical block address file-organization module Physical block address basic file system Issue commands to I/O to retrieve physical block I/O control Hardware-specific instructions devices Figure: Layered File System

Outline FS Implementation 4口”4614在4生:主QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline FS Implementation

FS Implementation Structures and operations used to implement file system operation,OS-&FS-dependment 1.On-disk structures 2.In-memory structures 4口”4814在,4色,主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FS Implementation ▶ Structures and operations used to implement file system operation, OS- & FS-dependment 1. On-disk structures 2. In-memory structures

FS Implementation 1.On-disk structures 1.1 Boot control block To boot an OS from the partition(volume) If empty,no OS is contained on the partition 1.2 Volume control block 1.3 Directory structure 1.4 Per-file FCB file permissions file dates(create,access,write) file owner,group,ACL file size file data blocks or pointers to file data blocks Figure:A typical file control block 4口”484在4色,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FS Implementation 1. On-disk structures 1.1 Boot control block ▶ To boot an OS from the partition (volume) ▶ If empty, no OS is contained on the partition 1.2 Volume control block 1.3 Directory structure 1.4 Per-file FCB file permissions file dates (create, access, write) file owner, group, ACL file size file data blocks or pointers to file data blocks Figure: A typical file control block

FS Implementation 2.In-memory information:For both FS management and performence improvement via caching Data are loaded at mount time and discarded at dismount Structures include: in-memory mount table; in-memory directory-structure cache system-wide open-file table; per-process open-file table 4口”4814在,4色,主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FS Implementation 2. In-memory information: For both FS management and performence improvement via caching ▶ Data are loaded at mount time and discarded at dismount ▶ Structures include: ▶ in-memory mount table; ▶ in-memory directory-structure cache ▶ system-wide open-file table; ▶ per-process open-file table

FS Implementation 2.In-memory information:For both FS management and performence improvement via caching Data are loaded at mount time and discarded at dismount Structures include: Sppen (file name directory structure directory structure file-control block user space kemnel memory secondary storage (a) index 口口口 read (index 口口口 directory blocks per-process system-wide open file table open file table file-control block user space kernel memory secondary storage (b) 口”48+4在4色主月Q0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FS Implementation 2. In-memory information: For both FS management and performence improvement via caching ▶ Data are loaded at mount time and discarded at dismount ▶ Structures include: ▶ in-memory mount table; ▶ in-memory directory-structure cache ▶ system-wide open-file table; ▶ per-process open-file table user space open (file name) kernel memory directory structure secondary storage file-control block directory structure (a) user space read (index) kernel memory per-process open file table system-wide open file table secondary storage file-control block directory blocks index (b)

Partitions and mounting Partition(分区) Raw(E.g.UNIX swap space some database)VS. cooked Boot information,with its own format Boot image Boot loader unstanding multiple FSes OSes Dual-boot Root partition is mounted at boot time Others can be automatically mounted at boot or manually mounted later 4口”4814在,4色,主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Partitions and mounting ▶ Partition (分区) ▶ Raw (E.g. UNIX swap space & some database) VS. cooked ▶ Boot information, with its own format ▶ Boot image ▶ Boot loader unstanding multiple FSes & OSes Dual-boot ▶ Root partition is mounted at boot time ▶ Others can be automatically mounted at boot or manually mounted later

Virtual File Systems(虚拟文件系统) Virtual File Systems(VFS,虚拟文件系统)provide an object-oriented way of implementing file systems. VFS allows the same system call interface(the APl)to be used for different types of file systems. The APl is to the VFS interface,rather than any specific type of file system. file-system interface VFS interface local file system local file system remote file system type 1 type 2 type 1 dis network Schematic View of Virtual File System 口”4814在4生,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Virtual File Systems (虚拟文件系统) ▶ Virtual 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. local file system type 1 disk local file system type 2 disk remote file system type 1 network VFS interface file-system interface Schematic View of Virtual File System

Outline Directory Implementation 4口”4814在,4色,主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline Directory Implementation
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)10 文件系统接口 File System Interface.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)09 虚拟内存 Virtual Memory.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)08 Main Memory.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)07 Deadlock.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)06 Process Synchronization.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)05 Threads.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)04 CPU Scheduling.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)03 Processes.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)02 OS Structure.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)01 CS Structure.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)01 OS overview.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)课程简介(主讲:陈香兰).pdf
- 中国科学技术大学:《高级操作系统 Advanced Operating System》课程教学资源(PPT课件讲稿)第二章 分布式路由算法(2/2).ppt
- 中国科学技术大学:《高级操作系统 Advanced Operating System》课程教学资源(PPT课件讲稿)第二章 分布式路由算法主要内容(1/2,主讲:陈香兰).ppt
- 天津开放大学:《电子商务概论》课程教学资源(试卷习题)综合练习及答案.doc
- 国家开放大学:《计算机应用基础》课程教学资源(章节习题,含答案)计算机网络应用基础练习_第三章.doc
- 国家开放大学:《计算机应用基础》课程教学资源(章节习题,含答案)计算机安全练习_第七章.doc
- 国家开放大学:《计算机应用基础》课程教学资源(章节习题,含答案)计算机基础知识练习_第一章.doc
- 国家开放大学:《计算机应用基础》课程教学资源(章节习题,含答案)Word 2010文字处理系统练习_第四章.doc
- 国家开放大学:《计算机应用基础》课程教学资源(章节习题,含答案)Windows 7操作系统及应用练习_第二章.doc
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)12 外存 Mass Storage Systems.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)13 IO管理 IO systems.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)GNU开发工具链简介 GNU Tools(主讲:陈香兰).pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)基于x86的Linux启动代码分析.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)制作简单的Linux系统.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)内存寻址.ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux进程管理(1/3).ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux进程管理(2/3).ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)中断和异常.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)系统调用.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux进程管理(3/3).ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)内存管理.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)Linux中的时钟和定时测量.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)Linux中的进程地址空间.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)程序的执行.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)文件系统.ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)管理I/O设备.ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux中的信号机制.ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)进程的同步和通信.ppt
- 中国科学技术大学:《嵌入式操作系统 Embedded Operating Systems》课程教学资源(课件讲义)课程介绍(主讲:陈香兰).pdf