On Tue, Dec 03, 2002 at 02:41:05AM -0500, Raghu R. Arur wrote: > I came across the member i_ino in the inode structure. This is supposed > to store the information about the file system of the file which owns this > inode. So what are the values of ext2, /proc etc file systems. where can i > find the information about this. The i_ino member is the same as in the stat(2) structure; you can write a quick little program to print out inode numbers from command line arguments you pass in describing files you are interested in. The fun thing is, stat(1) prints out the inode numbers. $ stat /bin/sh File: "/bin/sh" -> "bash" Size: 4 Blocks: 0 Symbolic Link Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root) Device: 302 Inode: 464936 Links: 1 Access: Mon Dec 2 23:48:30 2002 Modify: Fri Mar 23 03:15:19 2001 Change: Fri Mar 15 12:45:09 2002 (Note the Inode: 464936 in the output; that is the i_ino number of /bin/sh.) -- It seems the power has been robbed from the founding fathers and is now firmly in the hand of the funding fathers -- Rik van Riel
Attachment:
pgp00235.pgp
Description: PGP signature