Unit VI File Management
Unit VI File Management
Unit VI File Management
• File Concept
• Access Methods
• File allocation methods
• Disk and Directory Structure
• Disk Organization
File Concept
Directory
Files
F1 F2 F4
F3
Fn
• Naming problem
• Grouping problem
Two-Level Directory
Path name
Can have the same file name for different user
Efficient searching
No grouping capability
Tree-Structured Directories
Tree-Structured Directories (Cont.)
• Efficient searching
• Grouping Capability
• Indexed allocation
– Each file has its own index block(s) of pointers to
its data blocks
• Logical view
index table
Indexed Allocation (Cont.)