开发者

In-core inode list and disk inode list [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 9 years ago.

开发者_JS百科 Improve this question

Kindly tell me the difference between In-core inode list and disk inode list with reference to Unix File System.

Also, kindly direct me to the links where i can get more info on this.

Thanks,LinuxPenseur


From http://www.cs.iastate.edu/~cs554/NOTES/RPC/UNIXfilesystem.pdf (3rd page):

• on-disk inode refers to inode stored in disk within the inode list

• in-core inode refers to inode stored in memory when a file is open


The inode is a data structure that describes a file. The inode is actually a structure on filesystem. To open a file, the kernel copies the inode into memory. As the file changes, the in-core inode is updated usually more often than the on-disk copy. And the in-core inode has a few extra fields that are only needed while the file is opened. This over-simplifies things a little bit, but I think it's enough for now. ----lok!------


Basically the question has been answered. I would like to add in some of my views.

In - core inode refers to inode which is present in the main memory.The kernel uses it whenever a process wants to manipulate a file in the secondary memory.It is a dynamic entity.

On- disk inode is a static entity & is present only in the Secondary memory.

HTH


" Difference between in-core Inode and disk Inode

The inode is a data structure that describes everything about a file other than their name. When a file is opened then the kernel copies the inode into memory. As the file changes, the in-core inode is updated usually more often than the on-disk copy. And the in-core inode has a few extra fields that are only needed while the file is opened.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜