Chapter 12: File System Implementation
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
12.1
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Chapter 12: File System Implementation
12.2
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
File-System Structure
1. A disk can be rewritten in place; it is possible to read a block from the disk, modify the block, and write it back into the same place.
2. A disk can access directly any block of information it contains. Thus, it is simple to access any file either sequentially or randomly, and switching from one file to another requires only moving the read–write heads and waiting for the disk to rotate.
12.3
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
File-System Structure…
12.4
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
File-System Structure..
12.5
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Layered File System
12.6
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
File-System Structure
12.7
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
File-System Structure
12.8
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
File-System Implementation
12.9
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
File-System Implementation
12.10
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
File-System Implementation
12.11
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
File-System Implementation (Cont.)
Figure 12.2 A typical file-control block.
12.12
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
In-Memory File System Structures
12.13
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
In-Memory File System Structures
12.14
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Partitions and Mounting
12.15
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Virtual File Systems
12.16
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Virtual File Systems (Cont.)
12.17
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Virtual File System Implementation
12.18
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Directory Implementation
Linear List
12.19
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Directory Implementation
12.20
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Directory Implementation
Hash Table
12.21
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Allocation Methods
12.22
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Contiguous Allocation
12.23
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Contiguous Allocation…
12.24
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Contiguous Allocation of Disk Space
12.25
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Contiguous Allocation….
12.26
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Contiguous Allocation…
12.27
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Contiguous Allocation…
12.28
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Linked Allocation
12.29
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Linked Allocation
12.30
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Indexed Allocation
12.31
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Example of Indexed Allocation
12.32
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Indexed Allocation…
12.33
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Free-Space Management
12.34
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Free-Space Management..
12.35
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Linked List(Free-Space Management)
12.36
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Linked Free Space List on Disk
12.37
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Free-Space Management (Cont.)
Grouping
Counting
12.38
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Free-Space Management (Cont.)
12.39
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Efficiency and Performance
Efficiency
12.40
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Efficiency and Performance
12.41
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Performance
12.42
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Performance
12.43
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Performance
12.44
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Performance
12.45
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Performance
12.46
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Recovery
Consistency Checking
12.47
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Recovery
Log-Structured File Systems
12.48
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Recovery
Backup and Restore
...
12.49
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition
Recovery
12.50
Silberschatz, Galvin and Gagne ©2013
Operating System Concepts – 9th Edition