












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Operating Systems; Subject: Computer Science; University: University of San Diego; Term: Fall 2004;
Typology: Study notes
1 / 20
This page cannot be seen from the preview
Don't miss anything!













Midterm Results Scores:
Answers posted online Hours Spent on Projects 0 5 10 15 20 25 30 35 40 45 Proj 1 Proj 2
Disk Structure Disk Interaction Is Complicated Specifying a disk request requires a lot of detailed information
Modern disks are even worse…
Disk Performance
How? Disk Scheduling Seeks are expensive! (i.e., milliseconds—how long was memory access?) How might we schedule disk seeks?
File Systems The file system is the ABSTRACTION the OS provides for the data on the disk File systems:
Files A file is data with some properties A file can also have a type
Basic File Operations File Access Methods Some file systems provide different access methods to files:
Tree-Structured directories
Acyclic Graph Structure
How are shared files implemented? Problems/Issues with Graph Structure
Protection File systems implement some kind of protection system
A protection system dictates whether an action (read/write/execute) performed by a process/thread/user on a file should be allowed
Representing Protection Dr. Alvarado rx rx r OSStudent2 rwx rwx rw OSStudent1 rwx rwx rw /code /threads /synch.cc
ACLs FS must maintain a list of who has access to what
File System Layout
File systems define a block size (e.g. 4KB) Disk space allocated in terms of blocks A “Master Block” determines location of root directory A “Free Map” keeps track of which blocks are free or allocated Usually a bitmap (How?) Stored on disk—can be cached in memory Remaining disk blocks used to store files.
Unix Inodes and Path Search
Directories are files, so inodes also describe where they are placed
To open /one user Master Block to find inode for / Open /, look for entry for one Read the inode for one into memory The inode says where first data block is on disk Read that block into memory to read file… Read Ahead Many File Systems implement “read ahead”
When is this an advantage?
Summary of File Systems Files
Directories
Sharing Protection File System Layouts