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

CHAPTER 10:FILE-SYSTEM INTERFACE
CHAPTER 10: FILE-SYSTEM INTERFACE

CHAPTER 10:FILE-SYSTEM INTERFACE o File Concept o Access Methods o Directory Structure o File-System Mounting o File Sharing o Protection
CHAPTER 10: FILE-SYSTEM INTERFACE File Concept Access Methods Directory Structure File-System Mounting File Sharing Protection

OBJECTIVES o To explain the function of file systems o To describe the interfaces to file systems o To discuss file-system design tradeoffs, including access methods,file sharing,file locking,and directory structures o To explore file-system protection
OBJECTIVES To explain the function of file systems To describe the interfaces to file systems To discuss file-system design tradeoffs, including access methods, file sharing, file locking, and directory structures To explore file-system protection

DISK 磁盘盘片 读写磁头· o+ 主轴 动手 动缅 反力矩弹簧装置
DISK

留赶从0开站。自外角里舞号 0 凌些头《号小》 的2面扫从0并始从 预司到展厅进产写 自号液写具 】号液/写头 o 1前 2 3面 s m 6 m 禁空爱然华签 液/可头体特幅件 (它物特金越雅头 宝轴 分,处管路出2号候赶中内 一起内。外解特) 金韩延

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

FILE CONCEPT o Contiguous logical address space o Types: ·Data o numeric o character o binary ·Program
FILE CONCEPT Contiguous logical address space Types: Data numeric character binary Program

FILE STRUCTURE o None-sequence of words,bytes o Simple record structure 。Lines 。Fixed length ·Variable length o Complex Structures ·Formatted document Relocatable load file o Can simulate last two with first method by inserting appropriate control characters o Who decides: ·Operating system Program
FILE STRUCTURE None - sequence of words, bytes Simple record structure Lines Fixed length Variable length Complex Structures Formatted document Relocatable load file Can simulate last two with first method by inserting appropriate control characters Who decides: Operating system Program

FILE ATTRIBUTES o Name-only information kept in human-readable form o Identifier-unique tag(number)identifies file within file system o Type-needed for systems that support different types o Location-pointer to file location on device o Size-current file size o Protection-controls who can do reading,writing, executing o Time,date,and user identification-data for protection,security,and usage monitoring o Information about files are kept in the directory structure, which is maintained on the disk
FILE ATTRIBUTES Name – only information kept in human-readable form Identifier – unique tag (number) identifies file within file system Type – needed for systems that support different types Location – pointer to file location on device Size – current file size Protection – controls who can do reading, writing, executing Time, date, and user identification – data for protection, security, and usage monitoring Information about files are kept in the directory structure, which is maintained on the disk

FILE OPERATIONS o File is an abstract data type o Create o Write o Read o Reposition within file o Delete o Truncate o Open(F:)-search the directory structure on disk for entry F;,and move the content of entry to memory o Close (F)-move the content of entry F;in memory to directory structure on disk
FILE OPERATIONS File is an abstract data type Create Write Read Reposition within file Delete Truncate Open(Fi ) – search the directory structure on disk for entry Fi , and move the content of entry to memory Close (Fi ) – move the content of entry Fi in memory to directory structure on disk
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 上海交通大学:《操作系统 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
- 上海交通大学:《面向对象软件工程 Software Engineering》课程教学资源(作业)小组作业2.docx
- 上海交通大学:《面向对象软件工程 Software Engineering》课程教学资源(作业)小组作业1.docx
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec22_file system implementation.pdf
- 上海交通大学:《操作系统 Operating System》课程教学资源(课件讲稿)OS-Lec23_file system implementation.pdf
- 上海交通大学:《操作系统 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