Hi ash
I got the way to find file using the file name and super block
following approch i used
super block gives the size of itself
FD Block is next to the Super block
fd give me start of Inode block
from inode block i can read the inode structure of root inode(2)
which gives me start and lenght of file
thats all
thanks for help ash
bye
User Profile
Collapse
-
hi ash
I wanted to know that is there any value in the super block of ext2 fs which give me start address of inode block.
means superblock contain various details, can i either directly or by manupulation i get starting address of inode block
i dont want to use any external library
thanksLeave a comment:
-
hi
above error are corrected by rearrenging the header files.
do you know how to get find one perticular file.
means i have name of file.
i have to proceed like this
superblock->inode bock->datablock
now i had read the superblock.
which value from the superblock content give me link to inode table.
means how i get access to inode table vai the superblock either directly or indirectly...Leave a comment:
-
hi
when i run the code(reading super block)
i got following error
will u please help me out for the same.
#gcc readSB.c
In file included from /usr/include/stdlib.h:438,
from readSB.c:4:
/usr/include/sys/types.h:46: error: conflicting types for ‘loff_t’
/usr/include/linux/types.h:30: error: previous declaration of ‘loff_t’ was here
/usr/include/sys/types.h:62:...Leave a comment:
No activity results to display
Show More
Leave a comment: