上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec23_file system implementation

REVIEW o Allocation of Frames o Thrashing o Working-Set Model o Copy-on-Write o Memory-Mapped Files o Other Consideration ·Prepaging ·Page Size
REVIEW Allocation of Frames Thrashing Working-Set Model Copy-on-Write Memory-Mapped Files Other Consideration Prepaging Page Size 1

CHAPTER 11:FILE SYSTEM IMPLEMENTATION
CHAPTER 11: FILE SYSTEM IMPLEMENTATION

Symbolic Open Levels of file name file ID abstraction USER File system interface Files/ directories Directory High-level file and FS management directory functions Logical block Basic file IO system Open/close functions Physical device address Device organization Low-level data methods access functions IO system interface Logical block#
3

CHAPTER 11:FILE SYSTEM IMPLEMENTATION o File-System Structure o File-System Implementation o Directory Implementation o Allocation Methods o Free-Space Management 4
CHAPTER 11: FILE SYSTEM IMPLEMENTATION File-System Structure File-System Implementation Directory Implementation Allocation Methods Free-Space Management 4

LAYERED FILE SYSTEM application programs logical file system file-organization module ↓ basic file system ↓ I/O control ↓ devices
LAYERED FILE SYSTEM

FILE SYSTEM IMPLEMENTATION 块 组 续组0 校用N1 块组到 引导块 超级块 索引节点表 数据块 i-node 块组0是引导块,块组1往后分别是超级块,索引 节点表,数据块。 节点号2始终固定的指向根目录(). ·引导块一GRUB/LILO(boot control block) •超级块--空闲索引节点,空间数据块表 (volume control block;superblock;master file table) •索引节点表--文件相关信息及文件位置(FCB) •数据块---存储数据 6
FILE SYSTEM IMPLEMENTATION 块组0是引导块,块组1往后分别是超级块,索引 节点表,数据块。 节点号2始终固定的指向根目录(/). •引导块—GRUB/LILO (boot control block) •超级块---空闲索引节点,空间数据块表 (volume control block; superblock; master file table) •索引节点表----文件相关信息及文件位置 (FCB) •数据块----存储数据 6

A TYPICAL FILE CONTROL BLOCK file permissions file dates(create,access,write) file owner,group,ACL file size file data blocks or pointers to file data blocks
A TYPICAL FILE CONTROL BLOCK

I-NODES I-node Attributes Single indirect block Double Addresses of indirect data blocks block Triple indirect block An i-node with three levels of indirect blocks. 8
I-NODES An i-node with three levels of indirect blocks. 8

UNIX Files inode mode Data owner Data Direct block 0 Direct block 1 Data Direct block 11 Index Single indirect Double indirect- Triple indirect Data Index Data Index Index Index Data Index Data Index Index Data Index Data
9 UNIX Files mode Data owner … Direct block 0 Direct block 1 … Direct block 11 Single indirect Double indirect Triple indirect inode Data Data Index Data Data Index Index Index Data Data Index Index Index Index Index Data Data

DIRECTORY o Single level o Two level o Tree structure ·Path name o Concatenated local names with delimiter:(or or \ oAbsolute path name:start with root () o Relative path name:Start with current directory (.) o Notation to move“upward” (..) o Acyclic graph ·Symbolic link ·Hard link
DIRECTORY Single level Two level Tree structure Path name Concatenated local names with delimiter: ( . or / or \ ) Absolute path name: start with root (/) Relative path name: Start with current directory (.) Notation to move “upward” (..) Acyclic graph Symbolic link Hard link
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec22_file system implementation.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec21_file system interface.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec20_virtual memory.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec19_virtual memory.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec18_mainmemory.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec17_mainmemory.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec16_mainmemory.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Introduction_Lec3.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Introduction_Lec2.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Introduction_Lec1.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-deadlock_Lec15.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-cpuscheduling_Lec11.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-cpuscheduling_Lec10.pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(课件讲稿)第2讲 C++语言的基本数据类型与表达式.pdf
- 上海交通大学:《C++程序设计与实践》课程教学资源(课件讲稿)第1讲 绪论.pdf
- 上海交通大学:《面向对象软件工程 Software Engineering》课程教学资源《面向对象软件工程实践指南》教材资料(WORD版).docx
- 上海交通大学:《面向对象软件工程 Software Engineering》课程教学资源(作业)面向对象软件工程实践指南-2.pdf
- 上海交通大学:《面向对象软件工程 Software Engineering》课程教学资源(作业)小组作业5-最终交付.docx
- 上海交通大学:《面向对象软件工程 Software Engineering》课程教学资源(作业)小组作业4.docx
- 上海交通大学:《面向对象软件工程 Software Engineering》课程教学资源(作业)小组作业3.docx
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec24_DISK MANAGEMENT AND I/O.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec24_Review.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Process Synchronization_Lec12.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Process Synchronization_Lec13.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Process Synchronization_Lec14.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-process_Lec4.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-process_Lec5.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-process_Lec6.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-process_Lec7.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-process_Lec8.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-semaphore EXERCISES.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-OPERATING SYSTEMS(LINUX SYSTEM CALLS).pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-thread.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资料(Java)Java Introduction.docx
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec1.ppt
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec2.ppt
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec3.ppt
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec4.ppt
- 上海交通大学:《操作系统 Operating System》课程教学资料(JAVA PPT)lec5.ppt
- 上海交通大学:《操作系统 Operating System》课程教学资料(Java)Java Primer.pdf