Chapter_10

Chapter_10 - Chapter 10: File-System Interface s File...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
10.1 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface Chapter 10: File-System Interface File Concept Access Methods Directory Structure File-System Mounting File Sharing Protection
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Objectives 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
Background image of page 2
10.3 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts File Concept File Concept Contiguous logical address space Types: Data numeric character binary Program
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10.4 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts File Structure 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
Background image of page 4
10.5 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts File Attributes 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
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10.6 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts File Operations File Operations File is an abstract data type Create Write Read Reposition within file Delete Truncate Open(F i ) – search the directory structure on disk for entry F i , and move the content of entry to memory Close (F i ) – move the content of entry F i in memory to directory structure on disk
Background image of page 6
10.7 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Open Files Open Files Several pieces of data are needed to manage open files: File pointer: pointer to last read/write location, per process that has the file open File-open count: counter of number of times a file is open – to allow removal of data from open-file table when last processes closes it Disk location of the file: Information needed to locate the file on the disk need to be cached so that the system does not need to read the information from the disk for every access. Access rights:
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 36

Chapter_10 - Chapter 10: File-System Interface s File...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online