PDA

View Full Version : Question :D



Reiko
November 10th, 2006, 05:38 PM
Lets say i am using ext2 FS and i got a directory named mydir.In that directory i got 1 file : "file.txt".So the directory entry contains the name of the file which is "file.txt", the length of the file name, and the inode number of file.txt. The problem is where are these data stored (name,length of name, inode number of file.txt) and from where are they accessed. I think that the directory is accessed through his inode.In that inode we got addresses of data blocks and i think that one of that addresses(the first one?) is leading to the information in the directory entry(name,length of name,inode number of the file.txt) Correct me if i am wrong plz