I believe there are two types of inodes - on-disk and in-core inode ('struct inode' in fs.h). An on-disk inode is based on filesystem implementation. I am trying to understand the underlying concept and have a few questions -
Thanks!
In core inode is getting copied from disk inode in algorithm ialloc after allocating a free inode for the newly assigned disk inode using algorithm iget.
Kernel set flags to indicate discrepancies between the disk inode and in-core copy.When Kernel need to record changes to the file or to the inode, it writes the in-core copy of the inode to the disk after examining these flags.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With