W10 - File Management Flashcards
What are some desirable properties of files?
Long-term existences
Sharable between processes
Structure
Name file attributes.
Name Identifier Type Location Size Protection Time, and user identification
File basic operations.
Create, delete, write, read, open, close
Name a few file management system objectives.
-meet data management needs of user
-optimize performance
-guarantee data in file are valid
-minimize potential lost or destroyed data
I/O support for multiple users in multiple-user systems
What is the basic I/ supervisor in charge of?
File I/O initiation and termination.
Selection of device for which I/O is performed.
Scheduling disk and tape performance.
Assigned I/O buffers and secondary memory.
What is a basic file system responsible for?
Referred to as physical I/O level.
Concerned with placement of blocks on the secondary storage device.
Elements included in a file directory.
File name File type File organization Starting address Size used Size allocated Owner
What two issues arise in file sharing?
Access rights
Management of simultaneous access
What is secondary storage management?
Data structure on a disk that holds files.
What information does a Super Block contain?
Size of file system.
Size of file control block area.
Location of the file control block of root directory of the file system.
Times the files was created, modified, last used.
Contiguous allocation vs Chain allocation
Contiguous has external fragmentation. Simple. Good performance.
Chain has no external fragmentation. Seeks can be slow. Simple. Each block contains pointer to next block in chain. Files expand and contract. No direct access.
Indexed allocation pro and con.
Support direct access.
Contain separate index for each file. Dynamic access without external fragmentation.
Chained free portions disadvantages.
Fragmentation.
Everytime you allocate a block you need to read the block first to recover the pointer to the new first free block before writing data to that block.
What do each of these contain:
1) In-memory mount table
2) In-memory directory-structure cache
3) System-wide open-file table
4) Per-process open-file table
1) contain information about each mounted volume
2) hold the directory information of recently accessed directories
3) contain a copy of the FCB of each open file, as well as other information
4) contain a pointer to the appropriate entry in the system-wide open-file table