ch10 - Chapter 10: File-System Interface Chapter Chapter...

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

View Full Document Right Arrow Icon
Chapter 10: File-System Interface Chapter 10: File-System Interface
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 th 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 2
10.3 Silberschatz, Galvin and Gagne ©2005 th 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 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 th File Concept File Concept Contiguous logical address space Types: Data numeric character binary Program
Background image of page 4
10.5 Silberschatz, Galvin and Gagne ©2005 th 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 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 th File Structure File Structure If the OS supports multiple file structures, OS size can be big. OSs impose a minimal number of file structures All OSs must support at least executable file structure Applications include code to interpret input files Internal File Structure All disk I/O is performed in units of one physical block The physical block size may not match the logical record size Solution: Packing a number of logical records into physical blocks The packing can be done by OS or by user application program The larger the block size, the greater the internal fragmentation in last block
Background image of page 6
10.7 Silberschatz, Galvin and Gagne ©2005 th 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 7

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

View Full DocumentRight Arrow Icon
10.8 Silberschatz, Galvin and Gagne ©2005 th 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 8
10.9 Silberschatz, Galvin and Gagne ©2005 th File Operations File Operations create (space in the file system found, entry made in directory)
Background image of page 9

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

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

This note was uploaded on 03/21/2010 for the course CS 145 taught by Professor Markjan during the Spring '10 term at Abilene Christian University.

Page1 / 49

ch10 - Chapter 10: File-System Interface Chapter Chapter...

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

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