LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Understanding File System (https://www.linuxquestions.org/questions/linux-general-1/understanding-file-system-4175417265/)

rupeshkp728 07-17-2012 03:03 PM

Understanding File System
 
Can anybody pls provide me some good articles / links which will help me understand linux file system internals?
I want to understand how a file when accessed from user mode through its file name resolves to particular memory location on memory.
Where does the super, dentry and inodes come into picture in this file name to memory accessing process?

onebuck 07-17-2012 03:09 PM

Member Response
 
Hi,

Look at: Linux File System section;
Quote:

Understanding UNIX/Linux file system:
Part I <- Understanding Linux filesystems
Part II <- Understanding Linux superblock
Part III <- An example of Surviving a Linux Filesystem Failures
Part IV <- Understanding filesystem Inodes
Part V <- Understanding filesystem directories
Part VI <- Understanding UNIX/Linux symbolic (soft) and hard links
Part VII <- Why isn’t it possible to create hard links across file system boundaries?
Quote:

inode pointer structure - 'The inode pointer structure is a structure adopted by the inode of a file in the Unix File System (UFS) or other related file systems to list the addresses of a file's data blocks' + Ext3 for large file systems + A Basic UNIX Tutorial + A Fast File System for UNIX + Computer file systems
The above links and others can be found at 'Slackware-Links'. More than just Slackware® links!

syg00 07-17-2012 09:18 PM

The VFS layer handles all the drudgery of interfacing various (incompatible) block device drivers to generic kernel-space code. Kernel-space neither knows nor cares about filenames.
Although I seem to recall it also uses an "inode" pointer - to a memory location of course. Must go look that up again one day ...

I know of no web articles that explain all this, although they must be out there. I use several books (as in real paper ones - they were once quite popular) as reference - in addition to the source when I get interested in something.
ebooks would also presumably do the job - and hopefully cheaper.

rupeshkp728 07-17-2012 09:48 PM

Thanks onebuck and sys for the inputs.


All times are GMT -5. The time now is 03:53 AM.