Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 211238da6d926d1ca4390483bb29f586 > files > 14

coda-doc-5.2.0-4mdk.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE> The Coda Dir Package: Lookup handling</TITLE>
 <LINK HREF="codadir-4.html" REL=next>
 <LINK HREF="codadir-2.html" REL=previous>
 <LINK HREF="codadir.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="codadir-4.html">Next</A>
<A HREF="codadir-2.html">Previous</A>
<A HREF="codadir.html#toc3">Contents</A>
<HR>
<H2><A NAME="s3">3. <B>Lookup handling</B></A></H2>

<P>
<P>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.
<P>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 <EM> except </EM> when:
<P>
<OL>
<LI> 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.
</LI>
<LI> 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 ".".</LI>
</OL>
<P>
<P>
<HR>
<A HREF="codadir-4.html">Next</A>
<A HREF="codadir-2.html">Previous</A>
<A HREF="codadir.html#toc3">Contents</A>
</BODY>
</HTML>