CS 137: File Systems
Dealing With the Block Interface
1 / 24
CS 137: File Systems Dealing With the Block Interface 1 / 24 - - PowerPoint PPT Presentation
CS 137: File Systems Dealing With the Block Interface 1 / 24 Basics of Block I/O The Kernel API Request is described by struct bio : bi_sector Starting sector, 512-byte unit bi_bdev (Block) device to do I/O on bi_rw Read or write bi_size
1 / 24
Basics of Block I/O
2 / 24
Basics of Block I/O
3 / 24
Basics of Block I/O
4 / 24
Sample Code Overview
◮ Latter are critically important!
5 / 24
Sample Code Overview
6 / 24
Sample Code Overview
7 / 24
Sample Code Preliminary Declarations
8 / 24
Sample Code Preliminary Declarations
9 / 24
Sample Code Preliminary Declarations
10 / 24
Sample Code Preliminary Declarations
11 / 24
Sample Code Preliminary Declarations
12 / 24
Sample Code Helper Functions
13 / 24
Sample Code Helper Functions
14 / 24
Sample Code Initialization
15 / 24
Sample Code Initialization
16 / 24
Sample Code Initialization
17 / 24
Sample Code Initialization
18 / 24
Sample Code File System Functions
19 / 24
Sample Code File System Functions
20 / 24
Sample Code File System Functions
21 / 24
Sample Code File System Functions
22 / 24
Sample Code File System Functions
23 / 24
Sample Code Final Thoughts
24 / 24