inodes

Jim jjw at celerity.UUCP
Tue Oct 28 02:21:04 AEST 1986


>>                       Is there any way to "get" an i-node into a C 
>> program, the way getpwent gets passwd entries ?  Do I really have to
>> open the device file and look for the i-list ?  
>
>The stat(2) call yields a lot of info in the inode, but if you are
>looking for block info, reading the inode is the only means of getting
>it.

Note that doing this is inherently non-portable and, if it is used in a
program which will be used for more than a short time, it may break several
years down the line if the inode is changed due to the addition of some new
feature.



More information about the Comp.unix mailing list