<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>The Coda File Server: VolInfo interface </TITLE> <LINK HREF="server-6.html" REL=next> <LINK HREF="server-4.html" REL=previous> <LINK HREF="server.html#toc5" REL=contents> </HEAD> <BODY> <A HREF="server-6.html">Next</A> <A HREF="server-4.html">Previous</A> <A HREF="server.html#toc5">Contents</A> <HR> <H2><A NAME="s5">5. VolInfo interface </A></H2> <P> <P>This should turn into the volume location server. <P> <PRE> ViceGetVolumeInfo VRDB.find by name if not found try to find by id (VRDB.find nasty casts) if found: call vrent::GetVolumeInfo for the entry fills in VSGADD stuff special case for canonicalize fills in the replica volid's in INFO else VGetVolumeInfo gets it out of the VLDB_fd if successful and ROVOL: calculate GetVSGAddress elseif RWVOL lookup the volumeinfo for a replicated volume return information </PRE> <P> <HR> <A HREF="server-6.html">Next</A> <A HREF="server-4.html">Previous</A> <A HREF="server.html#toc5">Contents</A> </BODY> </HTML>