Peeking Inside
Persistent storage modeled as a sequence of N blocks
from 0 to N-1
4KB in this example
0 7 8 15 16 23 24 31 32 39 40 47 48 55 56 63
some blocks store data
Peeking Inside
Persistent storage modeled as a sequence of N blocks
from 0 to N-1
4KB in this example
D D D D D D D D D D D D D D D D D D D D D D D D
0 7 8 15 16 23 24 31 32 39 40 47 48 55 56 63
D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D
some blocks store data
- ther blocks store metadata (remember stat()?)
an array of inodes
at 256 bytes, 16 per block: file system can have up to 80 files
data nodes data nodes data nodes data nodes data nodes data nodes data nodes
Peeking Inside
Persistent storage modeled as a sequence of N blocks
from 0 to N-1
4KB in this example
some blocks store data
I I I I I D D D D D D D D D D D D D D D D D D D D D D D D
0 7 8 15 16 23 24 31 40 47 48 55 56 63
D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D
data nodes data nodes data nodes data nodes data nodes data nodes data nodes inodes 32 39
- ther blocks store metadata (remember stat()?)
an array of inodes
at 256 bytes, 16 per block: file system can have up to 80 files
Peeking Inside
Persistent storage modeled as a sequence of N blocks
from 0 to N-1
4KB in this example
some blocks store data
i d I I I I I D D D D D D D D D D D D D D D D D D D D D D D D
0 7 8 15 16 23 24 31 40 47 48 55 56 63
D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D
data nodes data nodes data nodes data nodes data nodes data nodes data nodes inodes 32 39 free lists
- ther blocks store metadata (remember stat()?)
an array of inodes
at 256 bytes, 16 per block: file system can have up to 80 files
two blocks with bitmaps tracking free inodes and data blocks