VFS Operations - Path To Inode Translation
Given a (full or relative) path to a file, find its inode:
Entry function: user_path_walk, in include/linux/fs.h.
Actual lookup function: link_path_walk, in fs/namei.c.
- First, get the dentry to "/" (if it's a full path) or to "." (if it's
a relative path).
- Start scanning the path, and follow via the dcache.
- Handle "." by skipping.
- Handle ".." using dentry->d_parent.
- Handle others via a cache lookup.
- If not found in the cache - ask the underlying filesystem to perform
a real lookup.
Originally written by
guy keren