ch11 - Chapter 11: File System Implementation...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 11: File System Chapter 11: File System Implementation Implementation
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 11: File System Implementation Chapter 11: File System Implementation File-System Structure File-System Implementation Directory Implementation Allocation Methods Free-Space Management Efficiency and Performance Recovery Log-Structured File Systems NFS Example: WAFL File System
Background image of page 2
11.3 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Objectives Objectives To describe the details of implementing local file systems and directory structures To describe the implementation of remote file systems To discuss block allocation and free-block algorithms and trade-offs
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11.4 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts File-System Structure File-System Structure File structure Logical storage unit Collection of related information File system resides on secondary storage (disks) File system organized into layers File control block – storage structure consisting of information about a file
Background image of page 4
11.5 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Layered File System Layered File System
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11.6 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts A Typical File Control Block A Typical File Control Block
Background image of page 6
11.7 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts In-Memory File System Structures In-Memory File System Structures The following figure illustrates the necessary file system structures provided by the operating systems. Figure 12-3(a) refers to opening a file. Figure 12-3(b) refers to reading a file.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11.8 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts In-Memory File System Structures In-Memory File System Structures
Background image of page 8
11.9 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Virtual File Systems Virtual File Systems Virtual File Systems (VFS) provide an object-oriented way of implementing file systems. VFS allows the same system call interface (the API) to be used for different types of file systems. The API is to the VFS interface, rather than any specific type of file system.
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11.10 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Schematic View of Virtual File System Schematic View of Virtual File System
Background image of page 10
11.11 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Directory Implementation Directory Implementation Linear list of file names with pointer to the data blocks. simple to program time-consuming to execute Hash Table – linear list with hash data structure. decreases directory search time collisions – situations where two file names hash to the same location fixed size
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11.12 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Allocation Methods Allocation Methods An allocation method refers to how disk blocks are allocated for files: Contiguous allocation Linked allocation Indexed allocation
Background image of page 12
11.13
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 55

ch11 - Chapter 11: File System Implementation...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online