Read directory operation

ls directory
At first kernel must know the inode number of the directory therefore it calls jffs2_lookup() to collect all information about the inode. Lookup reads the dirents of the inode and stores them in the inode info (dents). Then jffs2_readdir() is called and it goes thought the dents list and reads the necessary fields from the jffs2_full_dirent structures. This fields are name, name length, inode number (ino) and type.



Havasi Ferenc 2005-12-22