Hello,
I would like to understand how do you read an inode structure by its
inode number. I use stat function to obtain the necessary information
(inode number, etc.) about a file (given its path/name) and at this
point I would like to access the inode structure for this file. I'm
trying to obtain a file list for a given directory and I would like to
do it this way, i.e. use the inodes list. I'm not very good at
filesystems in general, but it looks like the inode structure is loaded
into memory at startup and then when you need info on a particular file,
you traverse that structure. And I would like to do the same.
Note: I'm aware of opendir/readdir/closedir functions. However, I would
like to do it the other way (if it's feasible) for educational purposes.
I would appreciate any help on this subject.
Thank you in advance,
Martin
Sent via Deja.com http://www.deja.com/
Before you buy.