On Sep 17, 2008 19:37 +0530, Rohit Sharma wrote: > I want to read ext2 inode. > > Its just like i have a inode no. say 1900.. > so from the block group we can read the group descriptor and from there we > can identify the first block no. of the inode table. > So we can read the required inode no.i.e. 1900 from this inode table. > I found that there are 8176 inodes per block group using tune2fs utility, That is true for your filesystem, it might be different for each ext* filesystems, depending on many parameters. > so if i am interested in reading 8177th inode then i have to move on > to next block groups inode table. Right, for this particular filesystem. Note also that there is libext2fs for performing operations like this on the filesystem in userspace. If you are reading the inode from within the kernel you can just use ext2_read_inode(). Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ