File System Analysis (I)
The file system of linux0.11 mainly uses the minix1.0 file system, which can manage 64 MB hard disk space in total
Files in Unix-like systems are classified into six types: Regular files, directories, super connections (symbolic connections), and pipelines (mainly used for process communication), character device, block device (the device exists as a file in Linux)
The main layout of the file system of linux0.11 (physical layout): boot block, super block, I node bitmap, logical block bitmap, I node, and data disk are fast.
The Logical Block bitmap reflects the usage of the physical hard disk, and the I-node bitmap reflects the number of files.
The ing between the I node and the logical block is also the focus.
There are two structures to be clear: the super block structure and the I node structure. Of course, they specify some parameters of the file system, such as the maximum file length, and some file read/write marks and file usage.
Functions mainly involve high-speed buffering, high-level access to files, and underlying access to files (mainly related to drivers)
The file system is a complicated version. The kernel code of the later version may differ greatly from that of version 0.11. VFS is used. The structure of linux0.11 (minix1.0) is mainly studied here.
The design of this file system is concise and easy to learn.