10-FileManagement
10-FileManagement
• Using per-process open-file table, index (file handle or file descriptor) resolves to
system-wide open-file table containing file-control block which resolves to actual
data blocks on disk
10. Storage & File Management 21
Outline
• Mass storage
• Disk scheduling
• Disk management
• Files
• Directories
• Tree-structured
• Acyclic-graph structured
• File system mounting
• Other issues
10. Storage & File Management 22
Directories
• Implementations must provide
• Grouping, to enable related files to be kept together
• Naming, for user convenience so different files can have the same name and
one file can have many names
• Efficiency, to find files quickly
• Single-level directory is simplest
• Naming and grouping problems though
• Two-level directory is next (FAT)
• Same names for different users via paths
• Efficient searching but no grouping