Filesystem
1
Disclaimer: some slides are adopted from book authors’ slides with permission
Filesystem Disclaimer: some slides are adopted from book authors - - PowerPoint PPT Presentation
Filesystem Disclaimer: some slides are adopted from book authors slides with permission 1 Recap Directory A special file contains (inode, filename) mappings Caching Directory cache Accelerate to find inode of a given
1
Disclaimer: some slides are adopted from book authors’ slides with permission
2
directory
3
4
System call Interface Virtual File System (VFS) Filesystem (FAT, ext4, …) Buffer cache Inode cache Directory cache I/O Scheduler User Applications
5
https://www.thomas- krenn.com/en/wiki/Linux_Storage_Stack_Diagram
6
7
8
Boot FAT1 FAT2 Root Directory File Area
1 253 505 537
9
10
11
Offset Length Description 0x00 8B File name 0x08 3B Extension name 0x0B 1B File attribute 0x0C 10B Reserved 0x16 2B Time of last change 0x18 2B Date of last change 0x1A 2B First cluster 0x1C 4B File size
12
13
Super block Block Bitmap Inode Bitmap Inodes File data blocks Block group 0 Block group 1 Group Desc. Super block Block Bitmap Group Desc.
14
15
Block Group 0 Group desc. table Block Group 1 Block Group 2
16
17
18
19
20
21
22
23
24
25
26
27
28