The superblock is the central structure in which all characteristic data of the filesystem are kept. Its contents are the first thing the kernel sees when mounting a filesystem. Data are read using the ext2_read_super routine (located in fs/ext2/super.c) invoked by means of the read_super function pointer in the file_system_type structure discussed in Chapter 8. The actions performed by this routine are analyzed in Section 9.2.4. The structure and layout of the superblock on the hard disk concern us here.

The relatively extensive ext2_super_block structure is used to define the superblock as follows:

Continue reading here: Info

Was this article helpful?

0 0