The Lookup Operation
Now we should allow searching for inodes inside directories, based on their
names - a simple "ls" won't work without stamfs_iop_lookup:
- Make sure the parameters are sane (e.g. file-name is not too long).
- Scan the directory for an entry with the desired name.
- If we found it - load the inode from disk, using the inode number
(see next slide).
- add the dentry as a child of the parent directory, in the dcache.
Originally written by
guy keren