Superblock Management

The mount structures themselves are not the only objects generated in memory when new filesystems are mounted. The mount operation starts by reading a structure called a superblock. I mentioned this structure several times above without bothering to define it properly. I do this now.

The read_super function pointer stored in the file_system_type objects returns an object of type super_block that represents a superblock in memory. It is generated with the help of the low-level implementation.

The structure definition is very long. I therefore reproduce a simplified version below (which itself is anything but lean).

Continue reading here: Info

Was this article helpful?

0 0