Minix File System: CSC3150 Dr. John C.S. Lui
Minix File System: CSC3150 Dr. John C.S. Lui
CSC3150
Dr. John C.S. Lui
Abstract
Introduction to Minix File System
Overview of Minix FS
Minix FS is just a big C program runs in a user
space.
user processes send messages to the FS telling what
they want done. The FS does the work and sends
back a reply. It can be used as a network le server!
Overview of Minix FS 1) messages, 2) FS layout, 3)
i-nodes, 4) block cache, 5) bit maps, 6) directories
and path names, 7) the process table, 8) pipe les,
9) integration.
~
~
~
~
I-node Zone
Data
bit map bit map
.......
Maximum file size
Magic number
Pointer to i-node bit map block
Zone bit map
....
10110111
Super-block’s device number 00110110
Present 11101111
in memory I-node of mounted file system
.......
but not I-node mounted on
on disk Time of last update
Read-only flag/Dirty flag
/ast/f1 /ast/f2
/user/bal /user/ast
/user/ast/f2
Figure 5.34: (a) Root file system. (b) An unmounted file system.
(c) The result of mounting the file system of (b) on /user
~
~ ~
~
~
~ ~
~
~
~ ~
~
Figure 5.35: How file positions are shared between a parent and a child
do_read do_write
dev_io