slides10 - File Systems Flashcards
1
Q
Directory
A
Symbol table translating the file names to file control blocks - file control blocks will tell us where to find the data in the file
2
Q
Single-level directory
A
- Files must have unique names
- each directory entry points to a single file
3
Q
Two-level directory
A
- Each user has a single level user file directory
- Master file directory links all the users
4
Q
Tree-structured directories
A
- Directory contains a set of sub-directories and files
- Process has a current directory location
- Files/directories can be referenced with relative or absolute paths
- Drawback: if a program needs a file in another directory, file must be copied to program’s directory
5
Q
Acyclic graph directories
A
- Allows sharing of files/directories -> links to same instance
- hard links: links only to files (acyclic)
- soft links: links to files or directories (can create cycles)