Loading An Inode From Disk
The "iget()" function we called to load the root inode will eventually invoke
the read_inode super-block operation, stamfs_read_inode():
- Find the disk block containing the inode, based on the inode number.
- Read the inode's block.
- Initialize the VFS's inode struct with the loaded data.
- Attach STAMFS's inode-meta-data to the inode.
- Set the various VFS operations (inode-operations, file-operations,
address-space operations) based on the inode's type (dir, file...).
Originally written by
guy keren