Linux File System composition
• Boot block
• Super Block
• Index node table
• Data blocks
Boot block: The bootloader used to host the file system, which is used to boot the system or boot the operating system
Super BLOCK: Used to describe the resource status of a Linux file system, including the size of the file system, the location information of the idle unit
Index node table: Below are
Data BLOCK: A disk block that holds data on disk, including catalog files and data
· Linux Index Node Table:
The Linux file system uses an index node to log file information, and the index node is a structure that contains information such as the length of a file, creation and modification times, permissions, affiliation, location on disk, and so on.
A file system maintains an array of index nodes, each of which corresponds to the only element in an array of index nodes.
The system assigns a number to each index node, which is the index number of the node in the array, called the index node number.
The Linux file system keeps the file index node number and filename in the directory at the same time
Therefore, the directory is simply a table that combines the file's index node number with the name of the file.
Each pair of file names and index nodes in the directory is called a connection
A unique index node number corresponding to a file
For an index node number, you can have more than one file name corresponding to it.
Therefore, the same file on the disk can be accessed through a different path.
Index node table is usually stored on disk
Read into memory when you need to do the work
In general, the table of index nodes stored on disk is called the Disk index node
The image in memory is called the Memory Index node table.
Linux File System