Intimately related to directories is the handling of lookups. In Coda this is somewhat involved due to volume mountpoints, and objects in conflict. During regular use, Venus performs the lookups.
For every ViceFid an inode number can be computed. The routine coda_f2i does this translation. A lookup of a name will return this inode number except when:
- The name looked up is ".." and it is contained in the root directory of a volume. Instead the lookup is returns the value returned by looking up "." in the directory containing the mount point. Note that this may be recursive.
- The name looke dup is "." and it is contained in the root directory of a volume. In this case the value returned is the value obtained by looking up the mountpoint in the parent directory of ".".