Lecture 9 Flashcards
What does file systems consist of?
A storage service and a directory service
What is a storage service?
Clients do not know about physical characteristics of the disks or where on the disk the files have been stored
What does a storage service need to make sure of?
That a file is not lost, even if there are hardware failures or software crashes
What is a directory service?
Clients can give convenient text names to files and group them in directories
What is the purpose of a directory service?
Clients should be able to access the sharing of their files with others by specifying who can access a given file
What is a file directory?
A structure associated with any file management system and collection of files
What does a file directory contain?
Information about the files. MOST OF INFO HANDLED BY OS. Some information is availiable to users through system routines (the user cannot directly access the directory=
When is a tree-structured file system less effective?
When there are a large number of files in a given directory
What are the pros of different unit sizes when allocating space for a file?
Fixed-size: Simplify the reallocation of space
Small fixed-size: Reduce wasted space
Lots of small units requires more space for allocation tables
What is static allocation?
Declare the max size in advance
What are the cons of static allocation?
-May be hard to guess space needed
- Tendency to overestimate space needed
(Only OK if the file will never change)
What are some cons of dynamic allocation?
Files are often no longer contiguous
What are the three allocation methods?
Contiguous allocation
Chained allocation
Indexed allocation
What is contiguous allocation?
A single contiguous. set of blocks assigned to a file when it’s created.
What are some pros and cons of contiguous allocation?
Good performance for sequential files
External fragmentation and the need to specify file size at creation